commit 4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15 parent 52b599a63c488d3a80bb9f5dd97bad0b10103c54 Author: Xiao-Yong Jin <xjin@anl.gov> Date: Fri, 29 Jan 2021 05:12:42 +0000 libhtml: fix array bounds in lex Diffstat:
M | src/libhtml/lex.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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; }