summaryrefslogtreecommitdiffstats
path: root/src/Dictionary.cpp
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-01-21 12:24:52 +0100
committerGravatar Nikias Bassen2026-01-21 12:26:13 +0100
commitc0f9df912d2a4001e56321fb53615e6474b32232 (patch)
treece3d46fa9ac9e173d2f86451037d1456205c067f /src/Dictionary.cpp
parentc18d6b323e8121c041e8b88d2ea6b6e85ca41274 (diff)
downloadlibplist-c0f9df912d2a4001e56321fb53615e6474b32232.tar.gz
libplist-c0f9df912d2a4001e56321fb53615e6474b32232.tar.bz2
jsmn: use size_t for token offsets and harden against overflow
Use size_t for token start/end offsets instead of int, replace the -1 sentinel with SIZE_MAX, and add a defensive guard against offset wraparound. This prevents overflow when parsing very large JSON inputs. This addresses issue #282. Credit to @ylwango613 for repporting.
Diffstat (limited to 'src/Dictionary.cpp')
0 files changed, 0 insertions, 0 deletions