diff options
| author | 2025-10-29 16:37:01 +0100 | |
|---|---|---|
| committer | 2025-10-29 16:37:01 +0100 | |
| commit | 2bcc19589d9f34bb25f04bd0d4b755bbe06c9271 (patch) | |
| tree | 495bcad75c4d6f8388a981576a86db96ffe3d80d /src | |
| parent | b5a9af880ffbdd5f310a2cd04c41cc86daac20cd (diff) | |
| download | libplist-2bcc19589d9f34bb25f04bd0d4b755bbe06c9271.tar.gz libplist-2bcc19589d9f34bb25f04bd0d4b755bbe06c9271.tar.bz2 | |
OpenStep: Fix possible integer overflow in node_from_openstep
Thanks to @ylwango613 for pointing this out!
Diffstat (limited to 'src')
| -rw-r--r-- | src/oplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oplist.c b/src/oplist.c index 33896f9..277693f 100644 --- a/src/oplist.c +++ b/src/oplist.c @@ -761,7 +761,7 @@ static plist_err_t node_from_openstep(parse_ctx ctx, plist_t *plist) char c = *ctx->pos; ctx->pos++; p = ctx->pos; - int num_escapes = 0; + size_t num_escapes = 0; while (ctx->pos < ctx->end) { if (*ctx->pos == '\\') { num_escapes++; |
