Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
t0suj4
on Nov 28, 2022
|
parent
|
context
|
favorite
| on:
GCC undefined behaviors are getting wild
I think the lesson here is to stop using signed integer as an index into an array.
eru
on Nov 28, 2022
|
next
[–]
The lesson is to only use C when absolutely necessary, and regularly use all the sanitizers and other safety tools you can find. Not just when you suspect something fishy.
sanxiyn
on Nov 28, 2022
|
prev
[–]
The lesson is you shouldn't use standard C, until the standard is fixed. Until then, compile with -fno-strict-overflow, like I do.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: