3 ms·
I was thinking more along the lines of being able to do binary arithmetic on pointers for validation, ptr & prefixmask != prefix means its out of range. Th
by ChuckMcM 13y ago
I was thinking more along the lines of being able to do binary arithmetic on pointers for validation,
ptr & prefixmask != prefix
means its out of range. That is a pretty cheap optimization, VMS and SunOS both used that sort of check in kernel space to insure that the kernel wasn't about to dereference a pointer outside of kernel space (potentially in some random process).