2 ms·
IBM AIX is a Unix-like system on which dereferencing a null pointer for a read is guaranteed to return zero. But writes will crash. It’s pretty weird.
by pavlov 3y ago
IBM AIX is a Unix-like system on which dereferencing a null pointer for a read is guaranteed to return zero. But writes will crash. It’s pretty weird.
- twoodfin 3y agoHP-UX binaries also had an attribute that would control this behavior. https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/chatr_pa.1.html https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/chatr_p... Wonderful fun when they shipped a Kerberos library that unconditionally dereferenced a potentially null optional pointer-to-struct, relying on the executable to be set in the “null tolerant” mode!