You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like _jsonb_escape was using the complete bufsize but buf was passed as buf + b->pos. So could _jsonb_escape be writing beyond the limits of buf?
To give some context, we are allocating an initial buffer that we resize if any of the build functions return JSONB_ERROR_NOMEM.
The text was updated successfully, but these errors were encountered:
Hi!
We are using your amazing library and found a potential mem leak. I'm not sure the patch we prepared to solve it is good though:
pantacor#2
Seems like _jsonb_escape was using the complete bufsize but buf was passed as buf + b->pos. So could _jsonb_escape be writing beyond the limits of buf?
To give some context, we are allocating an initial buffer that we resize if any of the build functions return JSONB_ERROR_NOMEM.
The text was updated successfully, but these errors were encountered: