realloc in buf_append

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2013-02-17 at 14:32 -0500, Mike Miller wrote:
> A possible memory leak in the buf_append function was just reported
> [1]. At a glance it looks like most of the functions in http.c that
> use buf_append/buf_error will return ENOMEM back up the stack and
> openconnect will exit immediately. Users of the library should
> presumably do the same. I think it's still worth fixing to be safe,
> but do you see any possible conditions where this could be a problem?
> Thanks.

Thanks. Yes, it's definitely worth fixing, and we'll do so for the 5.00
release. I wasn't planning to make a habit of doing 4.0x branch releases
though, so unless something more important comes along I don't plan to
do a 4.09. Of course, distros are perfectly capable of backporting the
fix if they want to.

A memory leak is harmless for the GNOME usage of the library, because
it's a short-lived process anyway. For KDE it's more of a pain. But if
kded starts getting heap alloc failures, you're probably shagged
already.

-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6171 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20130217/6d40a5b2/attachment.bin>


[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux