diff options
author | nyamatongwe <unknown> | 2011-10-23 10:36:32 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-10-23 10:36:32 +1100 |
commit | 5c994706efdabc3fdd547d169ed99192decf67b5 (patch) | |
tree | 649064af26b85fa2dacb1fc39be79b09693844c6 /src/PerLine.cxx | |
parent | c2821edd2bbd3fc26013101febc0193c9afe4b60 (diff) | |
download | scintilla-mirror-5c994706efdabc3fdd547d169ed99192decf67b5.tar.gz |
Avoid crashing for SCI_MARKERNEXT starting at -1. Bug #3427270.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r-- | src/PerLine.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx index c31d4ea9b..7e716ccc0 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -183,6 +183,8 @@ int LineMarkers::MarkValue(int line) { } int LineMarkers::MarkerNext(int lineStart, int mask) const { + if (lineStart < 0) + lineStart = 0; int length = markers.Length(); for (int iLine = lineStart; iLine < length; iLine++) { MarkerHandleSet *onLine = markers[iLine]; |