mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "PJSIP XML, XPIDF: Fix buffer size overwrite memory corruption error." into 13
This commit is contained in:
@@ -17,14 +17,15 @@
|
||||
*/
|
||||
|
||||
/*!
|
||||
* \brief The length of the XML prolog when printing
|
||||
* presence or other XML in PJSIP.
|
||||
* \brief Length of the XML prolog when printing presence or other XML in PJSIP.
|
||||
*
|
||||
* When calling any variant of pj_xml_print(), the documentation
|
||||
* claims that it will return -1 if the provided buffer is not
|
||||
* large enough. However, if the XML prolog is requested to be
|
||||
* printed, then the length of the XML prolog is returned upon
|
||||
* failure instead of -1.
|
||||
* printed and the buffer is not large enough, then it will
|
||||
* return -1 only if the buffer is not large enough to hold the
|
||||
* XML prolog or return the length of the XML prolog on failure
|
||||
* instead of -1.
|
||||
*
|
||||
* This constant is useful to check against when trying to determine
|
||||
* if printing XML succeeded or failed.
|
||||
|
Reference in New Issue
Block a user