libclamav: fix ADC lookback to offset 0

remotes/push_mirror/0.98.2
David Raynor 12 years ago
parent aa7ca24380
commit 9795643943
  1. 2
      libclamav/adc.c

@ -219,7 +219,7 @@ int adc_decompress(adc_stream *strm)
if (strm->curr >= (strm->buffer + ADC_BUFF_SIZE)) {
strm->curr = strm->buffer;
}
if (strm->curr > (strm->buffer + strm->offset)) {
if (strm->curr >= (strm->buffer + strm->offset)) {
bData = *(uint8_t *)(strm->curr - strm->offset);
}
else {

Loading…
Cancel
Save