]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r199895:
authorbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Dec 2009 19:01:50 +0000 (19:01 +0000)
committerbz <bz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 5 Dec 2009 19:01:50 +0000 (19:01 +0000)
commit749ece012f2597e58eb6f7adf94def0923f5e93d
tree8c971fd6250c6a278728f6245dba010c80f16057
parentd368013fc79155813f35d51d0b6c35b966b70600
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]

git-svn-id: svn://svn.freebsd.org/base/stable/8@200140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/opencrypto/deflate.c
sys/opencrypto/deflate.h