]> mj.ucw.cz Git - libucw.git/commit
Fixed bug in bucket shakedown code: it crashed with a mysterious error message
authorMartin Mares <mj@ucw.cz>
Wed, 5 Mar 2003 18:09:05 +0000 (18:09 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 5 Mar 2003 18:09:05 +0000 (18:09 +0000)
commit14d43d27e83ebae73794f422ee27e89d2a0a037e
treeb34f66ee4721870a949f96964662d861230588fc
parent20e0706931cdb02c30f97fa7ee543face255a7bf
Fixed bug in bucket shakedown code: it crashed with a mysterious error message
("Unexpected EOF") when there was a bucket larger than the shakedown buffer
and this included even deleted buckets (which was the cause of the latest crash
on sherlock5: shakedown on a corrupted database patched the corruption by
a large deleted bucket and when I ran it again, it crashed again due to this
bucket).

Now we are able to cope with deleted buckets of any size and when we
encounter an oversized non-deleted bucket, we bail out with a proper
error message.
lib/bucket.c