From a602c65354a4b595821d2300f38ebc107d07e2a9 Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Tue, 13 Feb 2018 14:11:36 +0000 Subject: [PATCH] AGG: Fix invalid memory access if input buffer size is zero --- deps/agg/include/agg_rendering_buffer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/agg/include/agg_rendering_buffer.h b/deps/agg/include/agg_rendering_buffer.h index e9e278b90..2bb32e903 100644 --- a/deps/agg/include/agg_rendering_buffer.h +++ b/deps/agg/include/agg_rendering_buffer.h @@ -176,6 +176,10 @@ namespace agg { m_rows.resize(height); } + else if(height == 0) + { + return; + } T* row_ptr = m_buf;