Commit 5d0f0bca authored by Anton Gladky's avatar Anton Gladky

Fix CVE-2019-6246. (Closes: #919321)

parent 84a7941f
From 3bb3e86e09ceeba226593e039f9d4dc4b2580101 Mon Sep 17 00:00:00 2001
From: svgpp <olegmax@gmail.com>
Date: Sun, 13 Jan 2019 20:20:19 +0300
Subject: [PATCH] #70 Check that image buffer is created on error
Combined patch from 3bb3e86e09ceeba226593e039f9d4dc4b2580101 and
fc54d7d3b7b14d81a5d81cc112d81fff6140362b
---
src/demo/render/svgpp_render.cpp | 4 ++++
1 file changed, 4 insertions(+)
Index: svgpp/src/demo/render/svgpp_render.cpp
===================================================================
--- svgpp.orig/src/demo/render/svgpp_render.cpp
+++ svgpp/src/demo/render/svgpp_render.cpp
@@ -1691,6 +1691,10 @@ int main(int argc, char * argv[])
<< "\"";
#endif
std::cerr << ": " << e.what() << "\n";
+ if (!buffer.isSizeSet()) {
+ // Buffer isn't created yet - nothing to save, exiting.
+ return 1;
+ }
}
catch(std::exception const & e)
{
10_fix_cmake.patch
20_check_image_buffer.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment