Get the latest tech news

Some bits on malloc(0) in C being allowed to return NULL


You're probably reading this page because you've attempted to access some part of my blog (Wandering Thoughts) or CSpace, the wiki thing it's part of. Unfortunately whatever you're using to do so has a HTTP User-Agent header value that is too generic or otherwise excessively suspicious.

Unfortunately whatever you're using to do so has a HTTP User-Agent header value that is too generic or otherwise excessively suspicious. Unfortunately, as of early 2025 there's a plague of high volume crawlers (apparently in part to gather data for LLM training) that behave like this. To reduce the load on Wandering Thoughts I'm experimenting with (attempting to) block all of them, and you've run into this.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of bits

bits

Photo of null

null

Photo of malloc(0

malloc(0

Related news:

News photo

2048 with only 64 bits of state

News photo

Clair Obscur: Expedition 33 developer exploring new content, accessibility features, and "all sorts of bits and bobs" for future game updates

News photo

Bits and bobs related to Wireless-Tag's WT32-ETH01 board