Bug 2405 - ORB Option Processing needs error checking
Summary: ORB Option Processing needs error checking
Status: NEW
Alias: None
Product: TAO
Classification: Unclassified
Component: ORB (show other bugs)
Version: 1.4.10
Hardware: All All
: P3 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2006-02-17 00:28 CST by J.T. Conklin
Modified: 2006-02-17 09:10 CST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.T. Conklin 2006-02-17 00:28:20 CST
Processing of ORB options, both command line arguments passed to ORB_init() and
Resource Factory options from Service Config files do minimal error checking of
option arguments.  For example, binary and numeric arguments are typically
parsed by ACE_OS::atoi().  This allows bogus arguments (and typos like
-ORBDebugLevel 5-ORB...) to pass undiagnosed.

Even using ACE_OS::strtol() would be an improvement, as its "ep" argument can be
used to detect whether the entire argument was processed/converted.

It's been suggested that we may want to do this in the context of larger option
processing refactors that have been discussed lately (supporting ORB_init()'s
-ORBoptions in service config files, supporting multiple service configurator
instances, etc).
Comment 1 Steve Totten 2006-02-17 09:10:10 CST
Added myself to CC list for this bug.