S
Steve
My question is how to handle and where to handle integer overflow
exceptions.
I am developing a C# application and I am debating on whether we
should turn on the "Check for arithmetic overflow" compiler flag. My
concerns are not necessarily security rather logic bugs.
If I turn it on, is there a performance hit? Throughout the program
or only when performing the integer operations?
Do I have to try/catch all of my integer math? If no, how do I catch
them? If yes, why not just use 'check' blocks along with the
try/catch?
Should I deliver my app with the flag on?
Thanks,
Steve
exceptions.
I am developing a C# application and I am debating on whether we
should turn on the "Check for arithmetic overflow" compiler flag. My
concerns are not necessarily security rather logic bugs.
If I turn it on, is there a performance hit? Throughout the program
or only when performing the integer operations?
Do I have to try/catch all of my integer math? If no, how do I catch
them? If yes, why not just use 'check' blocks along with the
try/catch?
Should I deliver my app with the flag on?
Thanks,
Steve