We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071c6e8 commit a1368f1Copy full SHA for a1368f1
msgpack_unpack.c
@@ -68,7 +68,7 @@ typedef struct var_entries {
68
#define MSGPACK_VALIDATE_INPUT_DATA_LENGTH(data, len, eof) \
69
((data) + (len) <= (eof))
70
#define MSGPACK_VALIDATE_INPUT(user, data, len) \
71
- if (!MSGPACK_VALIDATE_INPUT_DATA_LENGTH(data, len, (user)->eof)) { \
+ if ((len && !data) || !MSGPACK_VALIDATE_INPUT_DATA_LENGTH(data, len, (user)->eof)) { \
72
return MSGPACK_UNPACK_PARSE_ERROR; \
73
}
74
0 commit comments