X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19bcc6049d33fd5812e6a1c0685d368fa98daa67..f44fdfb032152a62cc0e3a4c0f09330cfab76710:/src/html/htmlpars.cpp?ds=sidebyside diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 213bd0f75b..65066aeddc 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -72,6 +72,8 @@ void wxHtmlParser::DoneParser() void wxHtmlParser::DoParsing(int begin_pos, int end_pos) { + if (end_pos <= begin_pos) return; + char c; char *temp = new char[end_pos - begin_pos + 1]; int i;