New comment by richfelker on void-packages repository https://github.com/void-linux/void-packages/issues/31722#issuecomment-881015561 Comment: Yes, that's the safe idiom I prefer for using `sizeof` with `malloc`.