Bug 1224

Summary: Name Service to_name() operation crashes with some strings.
Product: TAO Reporter: Carlos O'Ryan <coryan>
Component: Name ServiceAssignee: Priyanka Gontla <pgontla>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P3    
Version: 1.2.3   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1277    
Attachments: Patches to solve the problem

Description Carlos O'Ryan 2002-06-17 12:07:30 CDT
The to_name() operation crashes with some (admitedly illegal) strings, for
example : "foo.bar.baz.quz/xxx"

The parsing code correctly counts the number of components based on '/'
characters, but then creates a component after each '.' character.  It should
verify that each component has only one '.' character and raise a BAD_PARAM
exception (or something more descriptive) if an invalid string is passed.

I will attach a patch that supposedly solves the problem.
Comment 1 Carlos O'Ryan 2002-06-17 12:10:38 CDT
Created attachment 122 [details]
Patches to solve the problem
Comment 2 Priyanka Gontla 2002-06-17 13:51:04 CDT
Accepting.
Comment 3 Carlos O'Ryan 2002-08-10 21:34:24 CDT
I am adding this as a blocker for the 1.3 release.  Crashes in the Naming 
Service are pretty bad, and fixing this one should take no effort (since tested 
patches are readily available!)
Comment 4 Ossama Othman 2002-09-21 12:44:40 CDT
Fixed.

Sat Sep 21 12:42:25 2002  Ossama Othman  <ossama@uci.edu>

	* orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h:
	* orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp (to_name):
	  (to_name_helper):

	  Applied Carlos' patch that fixes to_name() operation crashes
	  with some strings (a blocker bug).  [Bug 1224]