3 ms·
The caller code. It is saying that the caller cannot dereference the returned pointer, under pain of undefined behavior.
by pbsd 12y ago
The caller code. It is saying that the caller cannot dereference the returned pointer, under pain of undefined behavior.
- AnimalMuppet 12y agoIn particular, you can't access (read or write) off either end of an allocated block. Well, if the block is of (nominal) length 0, there is nowhere to access safely.