Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
oss-fuzz-451112368: fix found crash
Signed-off-by: Adam <[email protected]>
  • Loading branch information
Adam authored and Adam committed Feb 13, 2026
commit d30f29ade144f735a23371b865244cb1fc165949
4 changes: 2 additions & 2 deletions Parser/tokenizer/helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ valid_utf8(const unsigned char* s)
return 0;
}
length = expected + 1;
for (; expected; expected--)
if (s[expected] < 0x80 || s[expected] >= 0xC0)
for (int i = 1; i <= expected; i++)
if (s[i] < 0x80 || s[i] >= 0xC0)
return 0;
Comment thread
AdamKorcz marked this conversation as resolved.
Outdated
return length;
}
Expand Down
Loading