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