From 4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15 Mon Sep 17 00:00:00 2001 From: Xiao-Yong Jin Date: Fri, 29 Jan 2021 05:12:42 +0000 Subject: libhtml: fix array bounds in lex --- src/libhtml/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libhtml/lex.c b/src/libhtml/lex.c index 49c5f502..82324ba5 100644 --- a/src/libhtml/lex.c +++ b/src/libhtml/lex.c @@ -586,7 +586,7 @@ getplaindata(TokenSource* ts, Token* a, int* pai) } if(c != 0){ buf[j++] = c; - if(j == sizeof(buf)-1){ + if(j == BIGBUFSIZE-1){ s = buftostr(s, buf, j); j = 0; } -- cgit v1.2.3