Date: Sat, 28 Mar 2009 06:47:05 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/db/hash hash_bigkey.c Message-ID: <200903280647.n2S6lJvg069096@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
delphij 2009-03-28 06:47:05 UTC FreeBSD src repository Modified files: lib/libc/db/hash hash_bigkey.c Log: SVN rev 190494 on 2009-03-28 06:47:05Z by delphij - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause an invariant (actually, an ugly hack) to fail, and all Hell would break loose. When deleting a big key, the offset of an empty page should be bsize, not bsize-1; otherwise an insertion into the empty page will cause the new key to be elongated by 1 byte. Make the packing more dense in a couple of cases. - fix NULL dereference exposed on big bsize values; Obtained from: NetBSD via OpenBSD Revision Changes Path 1.10 +18 -6 src/lib/libc/db/hash/hash_bigkey.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903280647.n2S6lJvg069096>