AGG: Fix invalid memory access if input buffer size is zero

This commit is contained in:
Jiri Drbalek 2018-02-13 14:11:36 +00:00
parent 098fd27291
commit a602c65354

View file

@ -176,6 +176,10 @@ namespace agg
{
m_rows.resize(height);
}
else if(height == 0)
{
return;
}
T* row_ptr = m_buf;