Fixed nasty crashing bug in the 4.0.11 branch
This commit is contained in:
parent
79b1590ff0
commit
45ed69c9f0
|
@ -799,7 +799,7 @@ cpp_lex_nonalloc_null_end_no_limit(Cpp_Lex_Data *S_ptr, char *chunk, int32_t siz
|
|||
break;
|
||||
}
|
||||
|
||||
if (chunk[S.pos-1] == 0){
|
||||
if (S.pos > S.chunk_pos && chunk[S.pos-1] == 0){
|
||||
--S.pos;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue