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 3976014dcd
commit e08786b5fb

View file

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