mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
oplist: Fix another OOB read
Credit to OSS-Fuzz
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"3˙˙˙˙"= /// hĐo/**5/*(*///6/*/#o/,{Ĺ
|
||||
@@ -508,6 +508,9 @@ static void parse_skip_ws(parse_ctx ctx)
|
||||
ctx->pos++;
|
||||
}
|
||||
}
|
||||
if (ctx->pos >= ctx->end) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// break on any char that's not white space
|
||||
if (!(((*(ctx->pos) == ' ') || (*(ctx->pos) == '\t') || (*(ctx->pos) == '\r') || (*(ctx->pos) == '\n')))) {
|
||||
|
||||
Reference in New Issue
Block a user