-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling some runtime checks in release mode #2809
Labels
Comments
Anyone against this change? |
Yes. I am. Instead we need a proper debug/release/safety split where |
So basically instead of having it enabled in the |
Can we close this? |
See nim-lang/RFCs#4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest we have some options in release mode that have little impact to it's performance yet have bounds checking and null dereferencing checks on by default. The reason being is that currently, the '-d:release' option disables all runtime checks, even those that have a relatively minor impact on performance. Considering the prevalence of buffer-overflow and off-by-one bugs in programs and libraries, I would like to suggest that the default configuration file be modified such that release mode doesn't turn off bounds-checking. Even if programmers perform standard testing of their programs, buffer overflow errors can still happen in unlikely scenarios and thus unlikely to be tested.
The text was updated successfully, but these errors were encountered: