Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
asveikau
4 months ago
|
parent
|
context
|
favorite
| on:
How memory safety CVEs differ between Rust and C/C...
An assert is not guaranteed to terminate the process. In C, the most common implementation choice is to completely omit the check if you're not building in debug mode.
uecker
4 months ago
[–]
You need to turn it off by defining NDEBUG. While sometimes it is not for release builds, I am not sure this is common.
asveikau
4 months ago
|
parent
[–]
Visual Studio defaults to defining NDEBUG in release mode, and I think that default was pretty influential
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: