mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
Findadv: Do not use out of range index into a string
Thanks Scott. Crashing if using _GLIBCXX_DEBUG preprocessor setting
This commit is contained in:
parent
a7428c0855
commit
8dd2ac7171
@ -2432,7 +2432,7 @@ int LatexInfo::dispatch(ostringstream &os, int previousStart, KeyInfo &actual)
|
||||
int val = actual._tokenstart;
|
||||
for (count = 0; count < actual._tokenstart;) {
|
||||
val = interval_.previousNotIgnored(val-1);
|
||||
if (interval_.par[val] != ' ')
|
||||
if (val < 0 || interval_.par[val] != ' ')
|
||||
break;
|
||||
else {
|
||||
count = actual._tokenstart - val;
|
||||
|
Loading…
Reference in New Issue
Block a user