Bug 2396 - pdf: cli_writen: Bad address
pdf: cli_writen: Bad address
Status: RESOLVED FIXED
Product: ClamAV
Classification: ClamAV
Component: libclamav
stable
x86 GNU/Linux
: P3 normal
: 0.96.5
Assigned To: Török Edwin
: havepatch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-29 16:00 EST by Török Edwin
Modified: 2018-07-11 15:51 EDT (History)
1 user (show)

See Also:
QA Contact:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Török Edwin 2010-11-29 16:00:43 EST
Created attachment 1608 [details]
pdf writen length patch

I got this message on this sample: 0018065471. Valgrind complains too, no crashes though.
Looks like it is due to this:
                       buf = q;
                       inflateEnd(&stream);
                       len -= q - buf;

q == buf, so len is obviously not adjusted at all.

Patch attached.