Bug 2405

Summary: ORB Option Processing needs error checking
Product: TAO Reporter: J.T. Conklin <jtc>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: NEW ---    
Severity: normal CC: totten_s
Priority: P3    
Version: 1.4.10   
Hardware: All   
OS: All   

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.