iCreatAI News
Skip to content
Hacker News AI· fessguid·· 7 hr agoAI score8

AI resolved all null pointer dereferences in C

AI resolved all null pointer dereferences in C

AI summary

A satirical post in which a JavaScript developer argues that writing to NULL should be legal, then has AI identify the kernel's DEFAULT_MMAP_MIN_ADDR=4096 setting as the cause of page faults on the first 4096 bytes. The author recompiles the kernel with DEFAULT_MMAP_MIN_ADDR=0 and links a static binary at address 0, after which a program that dereferences a NULL pointer prints "works 42" instead of segfaulting.

Source: Hacker News AI · kapteko.com