James Molloy's Tutorial Known Bugs: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Moved heap bug details from the user mode section to the heap section
Both snippets were actually the same, and the first one was not the incorrect code, ie they were both corrected but the second had extra parentheses
Line 87: Line 87:
To fix the problem, change this:
To fix the problem, change this:
<nowiki>
<nowiki>
if ((location+sizeof(header_t) & 0xFFFFF000) != 0)</nowiki>
if ((location+sizeof(header_t)) & 0xFFFFF000 != 0)</nowiki>


to this:
to this:
<nowiki>
<nowiki>
if (((location+sizeof(header_t)) & 0xFFFFF000) != 0)</nowiki>
if ((location+sizeof(header_t) & 0xFFFFF000) != 0)</nowiki>


See the section on user mode below for more details.
See the section on user mode below for more details.