Bug 1224 - Name Service to_name() operation crashes with some strings.
Summary: Name Service to_name() operation crashes with some strings.
Status: RESOLVED FIXED
Alias: None
Product: TAO
Classification: Unclassified
Component: Name Service (show other bugs)
Version: 1.2.3
Hardware: All All
: P3 critical
Assignee: Priyanka Gontla
URL:
Depends on:
Blocks: 1277
  Show dependency tree
 
Reported: 2002-06-17 12:07 CDT by Carlos O'Ryan
Modified: 2002-09-21 12:44 CDT (History)
0 users

See Also:


Attachments
Patches to solve the problem (2.05 KB, patch)
2002-06-17 12:10 CDT, Carlos O'Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
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]