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
Once strbuff->size is too big, the operation will fail, and then the original strbuff->value will leak. Then I watch on the call chain about the function strbuffer_append_bytes.
ws_process_read_data, websocket.c
ws_execute, websocket.c
json_reply, formats/json.c
json_string_output, formats/json.c
json_dumps, jansson/src/dump.c
dump_to_strbuffer, jansson/src/dump.c
due to the function ws_process_read_data, I think it is possible to cause realloc function failed.
The text was updated successfully, but these errors were encountered:
I noticed a lot of
realloc
functions being used in projects, but I think there is one that may have a potential CWE401 memory leak.location:
src\jansson\src\strbuffer.c#strbuffer_append_bytes:74
Once strbuff->size is too big, the operation will fail, and then the original strbuff->value will leak. Then I watch on the call chain about the function
strbuffer_append_bytes
.due to the function
ws_process_read_data
, I think it is possible to cause realloc function failed.The text was updated successfully, but these errors were encountered: