[quake3-bugzilla] [Bug 5717] New: Gamecode can open file "" for reading

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Tue Jul 17 17:00:34 EDT 2012


https://bugzilla.icculus.org/show_bug.cgi?id=5717

           Summary: Gamecode can open file "" for reading
           Product: ioquake3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: brian.webbs at gmx.de
         QAContact: quake3-bugzilla at icculus.org


Created attachment 3253
  --> https://bugzilla.icculus.org/attachment.cgi?id=3253
Example code which adds an "uf" server command for testing

Maybe this is some sort of feature, but to me it sure looks like a bug.

One can open the "" file (not NULL, just an empty string) for reading.
Take a look at the attached .diff for an usable example, I guess it doesn't
need much explanation.

I would expect the trap_FS_FOpenFile() call to set the file handle to 0, like
it does for other non-existent files.

-- 
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list