diff options
Diffstat (limited to 'tools/webpinfo.c')
-rw-r--r-- | tools/webpinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/webpinfo.c b/tools/webpinfo.c index f13ef28..a138985 100644 --- a/tools/webpinfo.c +++ b/tools/webpinfo.c @@ -38,7 +38,7 @@ parse_webp(jv o, const uint8_t *p, size_t len) // TODO(p): This can still be parseable. // TODO(p): Warn on trailing data. - uint32_t size = unle.u32(p + 4); + uint32_t size = u32le(p + 4); if (8 + size < len) return add_error(o, "truncated file"); @@ -53,7 +53,7 @@ parse_webp(jv o, const uint8_t *p, size_t len) break; } - uint32_t chunk_size = unle.u32(p + 4); + uint32_t chunk_size = u32le(p + 4); uint32_t chunk_advance = (chunk_size + 1) & ~1; if (p + 8 + chunk_advance > end) { o = add_warning(o, "runaway chunk payload"); |