Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> An LLVM pointer value cannot legally contain arbitrary non-null non-pointer integers such as 0x2.

0x2 is a perfectly valid pointer value, it just happens to never be a good virtual memory address on modern systems where virtual memory is setup by the usual OSs, hence the fact that you can rely on it segfaulting.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: