Bug 5717 - Gamecode can open file "" for reading
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 trivial
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-07-17 17:00 EDT by symlink
Modified: 2013-02-15 22:09:56 EST
1 user (show)

See Also:


Attachments
Example code which adds an "uf" server command for testing (791 bytes, patch)
2012-07-17 17:00 EDT, symlink

Description symlink 2012-07-17 17:00:29 EDT
Created attachment 3253 [details]
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.