mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Fix std/cbor meta.ri decoding F8XX for small XX
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24819
This commit is contained in:
1 parent
2de1dfec97
commit
16fadb25cf
2 files changed
+9
No files matched your search
@@ -623,6 +623,10 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
|
||||
} else if c_minor == 0x18 {
|
||||
if string_length < 0x18 {
|
||||
if not args.src.can_undo_byte() {
|
||||
return "#internal error: inconsistent I/O"
|
||||
}
|
||||
args.src.undo_byte!()
|
||||
break.goto_fail
|
||||
}
|
||||
args.dst.write_simple_token_fast!(
|
||||
|
||||
Reference in new issue
Block a user