Date: Tue, 29 Dec 2009 23:30:16 +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: <200912292330.nBTNUZRN062698@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2009-12-29 23:30:16 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/opencrypto deflate.c deflate.h
Log:
SVN rev 201235 on 2009-12-29 23:30:16Z by bz
MFC r199895:
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]
Revision Changes Path
1.4.10.4 +66 -57 src/sys/opencrypto/deflate.c
1.2.10.1 +7 -3 src/sys/opencrypto/deflate.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912292330.nBTNUZRN062698>
