[Bug 3637] QVMs are allowed to dereference NULL

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Fri Jul 11 05:40:46 EDT 2008


http://bugzilla.icculus.org/show_bug.cgi?id=3637





------- Comment #5 from amanieu at gmail.com  2008-07-11 05:40 EDT -------
(In reply to comment #0)
> Quake's virtual machines seem to allow both writing to and
> reading from NULL without any obvious side-effects.

There is a side effect to reading and writing to NULL. In qvms NULL will point
to the begining of the data segment, which is the vmCvar_t memory at the
begining of {g|cg|ui}_main.c. A simple way to fix this would be to allocate a 0
filled buffer right at the begining of the data section.


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



More information about the quake3-bugzilla mailing list