Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
uecker
7 months ago
|
parent
|
context
|
favorite
| on:
Making memcpy(NULL, NULL, 0) well-defined
Using a static char buffer would indeed UB but we just made the change to C2Y that this ok (and in practice it always was). Incorrect use of sockaddr_storage may lead to UB. But again, most socket code I see is actually correct.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: