Fixed nasty crashing bug in the 4.0.11 branch

master
Allen Webster 2016-09-24 16:58:05 -04:00
parent 79b1590ff0
commit 45ed69c9f0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}