AGG: Fix invalid memory access if input buffer size is zero
This commit is contained in:
parent
098fd27291
commit
a602c65354
1 changed files with 4 additions and 0 deletions
4
deps/agg/include/agg_rendering_buffer.h
vendored
4
deps/agg/include/agg_rendering_buffer.h
vendored
|
@ -176,6 +176,10 @@ namespace agg
|
||||||
{
|
{
|
||||||
m_rows.resize(height);
|
m_rows.resize(height);
|
||||||
}
|
}
|
||||||
|
else if(height == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
T* row_ptr = m_buf;
|
T* row_ptr = m_buf;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue