oplist: Fix another OOB read

Credit to OSS-Fuzz
This commit is contained in:
Nikias Bassen
2023-01-13 21:29:26 +01:00
parent db306bf373
commit 47a7fbe438
2 changed files with 4 additions and 0 deletions
@@ -0,0 +1 @@
"3˙˙˙˙"= /// hĐo/**5/*(*///6/*/#o/,{Ĺ
+3
View File
@@ -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')))) {