Database: Fix memory-area bounds checking during database reload.
commited120a096977fb0366023d151708cb3a8c427973
authorsideral <sideral@a1c6a512-1295-4272-9138-f99709370657>
Thu, 4 Aug 2011 10:21:40 +0000 (4 10:21 +0000)
committersideral <sideral@a1c6a512-1295-4272-9138-f99709370657>
Thu, 4 Aug 2011 10:21:40 +0000 (4 10:21 +0000)
treead5bad7f91bd4562ceb39a6af0a4455714eb77c1
parent3bd6ee9d6c2249ba069370290859c849457bfadb
Database: Fix memory-area bounds checking during database reload.

Check free space before reading new data from disk, and do not forget
to account for the RAM-cache header.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30246 a1c6a512-1295-4272-9138-f99709370657
apps/tagcache.c