Browse code

libclamav: fix ADC lookback to offset 0

David Raynor authored on 2013/11/23 04:37:47
Showing 1 changed files
... ...
@@ -219,7 +219,7 @@ int adc_decompress(adc_stream *strm)
219 219
                     if (strm->curr >= (strm->buffer + ADC_BUFF_SIZE)) {
220 220
                         strm->curr = strm->buffer;
221 221
                     }
222
-                    if (strm->curr > (strm->buffer + strm->offset)) {
222
+                    if (strm->curr >= (strm->buffer + strm->offset)) {
223 223
                         bData = *(uint8_t *)(strm->curr - strm->offset);
224 224
                     }
225 225
                     else {