Date: Sat, 28 Nov 2009 21:08:19 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/opencrypto deflate.c deflate.h Message-ID: <200911282108.nASL8daT033739@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2009-11-28 21:08:19 UTC
FreeBSD src repository
Modified files:
sys/opencrypto deflate.c deflate.h
Log:
SVN rev 199895 on 2009-11-28 21:08:19Z by bz
Change memory managment from a fixed size array to a list.
This is needed to avoid running into out of buffer situations
where we cannot alloc a new buffer because we hit the array size
limit (ZBUF).
Use a combined allocation for the struct and the actual data buffer
to not increase the number of malloc calls. [1]
Defer initialization of zbuf until we actually need it.
Make sure the output buffer will be large enough in all cases.
Details discussed with: kib [1]
Reviewed by: kib [1]
MFC after: 6 days
Revision Changes Path
1.8 +66 -57 src/sys/opencrypto/deflate.c
1.3 +7 -3 src/sys/opencrypto/deflate.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911282108.nASL8daT033739>
