Kevin Gillette schreef: > On Fri, Apr 11, 2008 at 5:31 PM, Giel van Schijndel < > [EMAIL PROTECTED]> wrote: > >> URL: >> <http://gna.org/bugs/?11480> >> >> Summary: SQLite PhysFS VFS segfaults when a file isn't >> found >> Project: Warzone Resurrection Project >> Submitted by: muggenhor >> Submitted on: Friday 04/11/08 at 23:31 >> Category: None >> Severity: 4 - Important >> Priority: 7 - High >> Status: None >> Assigned to: None >> Originator Email: >> Open/Closed: Open >> Discussion Lock: Any >> Release: svn/trunk >> Operating System: All >> Planned Release: None >> >> _______________________________________________________ >> >> Details: >> >> When attempting to open an SQLite database file, that doesn't exist, with >> the >> PhysFS VFS a segfault occurs instead of an error message. >> >> Right now I assume this caused by a flaw in the PhysFS VFS implementation. > > SQLite's behavior (at least by default -- it may or may not be configurable) > is that if a database file does not exist, it will be created on write, so > for pure SQLite compatibility, it should neither segfault nor give an error > -- any error should be raised by a file existence check before attempting to > open the file.
This ^^ was an automatic message produced by the bugtracker, and this bug has already been fixed & closed (just follow the link). Anyway, I just forgot to check whether our PHYSFS_file* pointer was NULL before using it... PS Please don't top-post as it's annoying to read. -- Giel A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
