From 5b2ad02d50a23b5e82f9ebbc644622e42199ea95 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Tue, 19 May 2015 10:01:42 +0200 Subject: wx: Fix bad float in return values To many floats in return value could cause a reallocation and pointers to reallocated data. Fix it by ensuring that the temp float array is large enough before add values to it. --- lib/wx/c_src/wxe_return.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/wx/c_src/wxe_return.h') diff --git a/lib/wx/c_src/wxe_return.h b/lib/wx/c_src/wxe_return.h index 80946e2dc6..a157348f1d 100644 --- a/lib/wx/c_src/wxe_return.h +++ b/lib/wx/c_src/wxe_return.h @@ -116,6 +116,8 @@ public: void add(const wxHtmlLinkInfo &val); + void ensureFloatCount(size_t n); + int send(); void reset(); -- cgit v1.2.3