Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
int_19h
on Dec 11, 2024
|
parent
|
context
|
favorite
| on:
Making memcpy(NULL, NULL, 0) well-defined
People will only rely on UB when it is well defined by a particular implementation, either explicitly or because of a long history of past use. E.g. using unions for type punning in gcc, or allowing methods to be called on null pointers in MSVC.
But there's nothing like that here.
pjmlp
on Dec 12, 2024
[–]
Until a compiler version comes out and since it was UB anyway, the compiler sundenly now behaves in a different way.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But there's nothing like that here.