diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-31 22:34:32 -0700 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-31 22:34:32 -0700 |
commit | 65e39a369ce7befe18cfcb350e4d3cc391cc09f2 (patch) | |
tree | c28e4d9dc8c94f9d61a2cfcc5600e691a3eebdbd /xdelta3/xdelta3-internal.h | |
parent | 33bc5056a256f3a49da2062b2e383cbeed2d2b8b (diff) | |
parent | 482c20590f29c91a06430d2818a140257826ac01 (diff) |
Merge ~6 AFL decoder fixes from head; AFL support in run_release.sh
Diffstat (limited to 'xdelta3/xdelta3-internal.h')
-rw-r--r-- | xdelta3/xdelta3-internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xdelta3/xdelta3-internal.h b/xdelta3/xdelta3-internal.h index e3568e8..6482721 100644 --- a/xdelta3/xdelta3-internal.h +++ b/xdelta3/xdelta3-internal.h | |||
@@ -230,7 +230,7 @@ void xprintf(const char *fmt, ...) PRINTF_ATTRIBUTE(1,2); | |||
230 | \ | 230 | \ |
231 | do \ | 231 | do \ |
232 | { \ | 232 | { \ |
233 | if (inp == max) \ | 233 | if (inp == maxp) \ |
234 | { \ | 234 | { \ |
235 | stream->msg = "end-of-input in read_integer"; \ | 235 | stream->msg = "end-of-input in read_integer"; \ |
236 | return XD3_INVALID_INPUT; \ | 236 | return XD3_INVALID_INPUT; \ |
@@ -290,7 +290,7 @@ xd3_decode_uint32_t (xd3_stream *stream, uint32_t *val) | |||
290 | 290 | ||
291 | static inline int | 291 | static inline int |
292 | xd3_read_uint32_t (xd3_stream *stream, const uint8_t **inpp, | 292 | xd3_read_uint32_t (xd3_stream *stream, const uint8_t **inpp, |
293 | const uint8_t *max, uint32_t *valp) | 293 | const uint8_t *maxp, uint32_t *valp) |
294 | { READ_INTEGER_TYPE (uint32_t, UINT32_OFLOW_MASK); } | 294 | { READ_INTEGER_TYPE (uint32_t, UINT32_OFLOW_MASK); } |
295 | 295 | ||
296 | #if XD3_ENCODER | 296 | #if XD3_ENCODER |
@@ -323,7 +323,7 @@ xd3_decode_uint64_t (xd3_stream *stream, uint64_t *val) | |||
323 | 323 | ||
324 | static int | 324 | static int |
325 | xd3_read_uint64_t (xd3_stream *stream, const uint8_t **inpp, | 325 | xd3_read_uint64_t (xd3_stream *stream, const uint8_t **inpp, |
326 | const uint8_t *max, uint64_t *valp) | 326 | const uint8_t *maxp, uint64_t *valp) |
327 | { READ_INTEGER_TYPE (uint64_t, UINT64_OFLOW_MASK); } | 327 | { READ_INTEGER_TYPE (uint64_t, UINT64_OFLOW_MASK); } |
328 | 328 | ||
329 | #if XD3_ENCODER | 329 | #if XD3_ENCODER |