aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ContractionState.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-07-04 08:51:08 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-07-04 08:51:08 +1000
commit6383d824ceff7d6b3c16dd7c71747f36089c16ad (patch)
tree1d110edcc481e6bb87aa608920c0d3453674812b /src/ContractionState.cxx
parentb251de96975a3894a450d9e0e7be0ad769e533b3 (diff)
downloadscintilla-mirror-6383d824ceff7d6b3c16dd7c71747f36089c16ad.tar.gz
Throw an exception for a negative sized reallocation as occurs when asked
for more than 2GB.
Diffstat (limited to 'src/ContractionState.cxx')
-rw-r--r--src/ContractionState.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx
index 7b7655420..16ca3c531 100644
--- a/src/ContractionState.cxx
+++ b/src/ContractionState.cxx
@@ -7,6 +7,7 @@
#include <string.h>
+#include <stdexcept>
#include <algorithm>
#include "Platform.h"