Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 14 May 2012 07:05:55 -0500
From: "jfoug" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: RE: Debugging memory leaks

>There seem to be numerous memory leaks in the libclamav code I use in
>RAR. Unfortunately their normal case is a valid archive whereas our
>normal case is random data. In many cases, an early reject results in
>leaked memory.
>
>I have some vague memories of a discussion about giving mem_alloc_tiny a
>"saved state" feature that would probably be perfect here. It could also
>be a performance boost - unrar makes lots of miniscule allocs.

Is alloca a possibility here?  Or is the size of mem alloc's too much?



Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ