From 2bcc19589d9f34bb25f04bd0d4b755bbe06c9271 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 29 Oct 2025 16:37:01 +0100 Subject: OpenStep: Fix possible integer overflow in node_from_openstep Thanks to @ylwango613 for pointing this out! --- src/oplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/oplist.c') 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++; -- cgit v1.1-32-gdbae