[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] main.cpp error handling
From: |
Joel Sherrill |
Subject: |
[Simulavr-devel] main.cpp error handling |
Date: |
Fri, 8 May 2009 08:47:17 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
Hi,
I made a typo and uncovered a nasty set of
unchecked possible error conditions in
main.cpp. main.cpp has a number of arguments
that take integers. If those conversions
fail, you will get weird and maybe silent
side-effects.
I did -F FILE (-f FILE was right) and got
a Floating Point Exception. -F is frequency.
I want to add a wrapper for string to integer
conversion and error check all numeric arguments
closer.
Any comments before I dive into this?
--
Joel Sherrill, Ph.D. Director of Research & Development
address@hidden On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Simulavr-devel] main.cpp error handling,
Joel Sherrill <=