> From: Clemens Ladisch [mailto:clem...@ladisch.de] > Sent: Friday, October 21, 2016 1:31 AM > It would be possible to open a 'wrong' file only if someone had created a > fake database file deliberately.
I think that is generally correct, but "possible ... only if" is perhaps a bit strong. sqlite3.exe is willing to open and modify an existing empty file. In some sense that means that all empty files are sqlite databases. Often, the creator of the file had something else in mind. If I run the unix command split --bytes=360K foo.sqlite foo.sqlite so that I can archive the file onto a collection of floppy disks, one of the files I get will be named foo.sqliteaa, and that file will have the sqlite header string. I'd call it a stretch to say that I deliberately created a fake database file. Regards, Bill ************************************************************************************** This e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited. ************************************************************************************** _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users