Commit c7a0ea46 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer Committed by Thomas Jahns

Fix out-of-bounds error found by valgrind

parent 72f36241
......@@ -280,7 +280,7 @@ static int m_check_zero_block(struct aec_stream *strm)
uint32_t *p = state->block_p + state->ref;
uint32_t *end = state->block_p + strm->block_size;
while(*p == 0 && p < end)
while(p < end && *p == 0)
p++;
if (p < end) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment