SQLite Forum

Help needed! Database corruption on embedded system
Login
How many bytes long is the file after the 4011th INSERT ?

Have you created any other databases that long on the same platform which do not get reported as corrupt ?

Don't worry about unused data areas being filled with zeros.  This is a consequence of how the operating system hands you new space.  On some platforms it fills it with zeros to prevent a security vulnerability, on others it does not.