Skip to content

Commit 8910679

Browse files
committed
xplist: Fix possible integer overflow
Thanks to @ylwango613 for reporting!
1 parent 2bcc195 commit 8910679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xplist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ static plist_err_t node_from_xml(parse_ctx ctx, plist_t *plist)
10661066
ctx->err++;
10671067
goto err_out;
10681068
}
1069-
int taglen = ctx->pos - p;
1069+
size_t taglen = ctx->pos - p;
10701070
tag = (char*)malloc(taglen + 1);
10711071
strncpy(tag, p, taglen);
10721072
tag[taglen] = '\0';

0 commit comments

Comments
 (0)