ok, so, you know how the standards (C/POSIX) allow malloc(0) to return NULL?
i went to refresh my memory after a discussion of a security issue today and as best as i can tell, no commonly used OS has ever had malloc(0) return NULL, including historical ones¹. windows, glibc, musl, BSDs, all return a non-NULL pointer to some object
¹https://nabijaczleweli.xyz/content/blogn_t/017-malloc0.html