Skip to content

Commit 2bcc195

Browse files
committed
OpenStep: Fix possible integer overflow in node_from_openstep
Thanks to @ylwango613 for pointing this out!
1 parent b5a9af8 commit 2bcc195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oplist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static plist_err_t node_from_openstep(parse_ctx ctx, plist_t *plist)
761761
char c = *ctx->pos;
762762
ctx->pos++;
763763
p = ctx->pos;
764-
int num_escapes = 0;
764+
size_t num_escapes = 0;
765765
while (ctx->pos < ctx->end) {
766766
if (*ctx->pos == '\\') {
767767
num_escapes++;

0 commit comments

Comments
 (0)