Skip to content

Commit

Permalink
AGG: Fix invalid memory access if input buffer size is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
talaj committed Feb 14, 2018
1 parent 098fd27 commit a602c65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/agg/include/agg_rendering_buffer.h
Expand Up @@ -176,6 +176,10 @@ namespace agg
{
m_rows.resize(height);
}
else if(height == 0)
{
return;
}

T* row_ptr = m_buf;

Expand Down

0 comments on commit a602c65

Please sign in to comment.