tlibhtml: fix array bounds in lex - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 4056d6be4d0fca6fc5e6ccfd24ff4785db9fec15 | |
parent 52b599a63c488d3a80bb9f5dd97bad0b10103c54 | |
Author: Xiao-Yong Jin | |
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 | |
t@@ -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; } |