mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add jsonptr check for to-be-extended token length
This commit is contained in:
1 parent
e511b8b891
commit
03a87ea3ef
2 files changed
+6
No files matched your search
@@ -1509,6 +1509,9 @@ handle_token(wuffs_base__token t, bool start_of_token_chain) {
|
||||
? ((uint64_t)(t.value_base_detail__sign_extended()))
|
||||
: vbd;
|
||||
if (t.continued()) {
|
||||
if (len != 0) {
|
||||
return "main: internal error: unexpected to-be-extended length";
|
||||
}
|
||||
g_token_extension.category = vbc;
|
||||
g_token_extension.detail = x;
|
||||
return nullptr;
|
||||
|
||||
Reference in new issue
Block a user