Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
proton-0.4, proton-0.5, proton-0.7
-
None
-
All plataforms
Description
Expected behavior:
When you use pn_message_save* functions API, you pass char *data and size_t *size. If the size IS NOT enough to save mesage body text, this functions return in size_t *size variable, the necessary buffer size and return PN_OVERFLOW status.
Behavior observed:
The pn_message_save* functions API return PN_OVERFLOW status and DO NOT return a correct value of necessary buffer.
Patch to fix expected behavior is attached: