Skip to content

Commit f752a3e

Browse files
committed
Merged the fix from the master branch that memory overrun conditions were not detected when writting to the output buffer during pixel encoding.
1 parent b2511da commit f752a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoderstrategy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class EncoderStrategy
138138

139139
void Flush()
140140
{
141-
if (_compressedLength < 4 && _compressedStream != NULL)
141+
if (_compressedLength < 4)
142142
{
143143
OverFlow();
144144
}

0 commit comments

Comments
 (0)