From: Rusty Russell Date: Wed, 21 Dec 2011 05:44:51 +0000 (+1030) Subject: tdb2: be more careful on 4G files (tdb1). X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=a3606bbd6ac38deb365b1c6c7f738ef19bd3df1c;hp=a3606bbd6ac38deb365b1c6c7f738ef19bd3df1c tdb2: be more careful on 4G files (tdb1). I came across a tdb which had wrapped to 4G + 4K, and the contents had been destroyed by processes which thought it only 4k long. Fix this by checking on open, and making tdb_oob() check for wrap itself. Signed-off-by: Rusty Russell (Ported from tdb1 SAMBA commit b64494535dc62f4073fc6302847593ed6e6ec38b) ---