From 25aabf6470af44b38a93a72b0d4d3c2121b0911e Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 24 Sep 2016 20:06:43 +0100 Subject: [PATCH] Fix heap overflow in testpaint --- test/testpaint/intercept_2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testpaint/intercept_2.cpp b/test/testpaint/intercept_2.cpp index da48fd8ebf..e443f55f02 100644 --- a/test/testpaint/intercept_2.cpp +++ b/test/testpaint/intercept_2.cpp @@ -244,7 +244,7 @@ namespace Intercept2 if (edge.offset == 0) { sprintf(out, " 0/%X ", edge.type); } else { - utf8string offset = new utf8[3]; + utf8string offset = new utf8[16]; if (edge.offset < 0) { sprintf(offset, "%d", edge.offset); } else {