diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-03-02 10:28:24 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-03-02 10:28:24 +0100 |
commit | 0997dff0aa32814ed933354d96fbd7e333624c3e (patch) | |
tree | b57ebbaed39baa0de2b62301dc10922c89b3ed10 | |
parent | 4d7c7b9942feb3b772f3ba551e15eb5541e7aa4f (diff) | |
parent | 8dd3c8372e291717b3d02c411fe63f2b365cdb9f (diff) | |
download | ATCD-0997dff0aa32814ed933354d96fbd7e333624c3e.tar.gz |
Merge pull request #20 from jwillemsen/master
Check for a nil pointer passed to string_to_ObjectId, resolves several C...
-rw-r--r-- | TAO/tao/PortableServer/PortableServer_Functions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/PortableServer_Functions.cpp b/TAO/tao/PortableServer/PortableServer_Functions.cpp index 853bd2b7ea2..fe9c1f5f45a 100644 --- a/TAO/tao/PortableServer/PortableServer_Functions.cpp +++ b/TAO/tao/PortableServer/PortableServer_Functions.cpp @@ -9,6 +9,13 @@ namespace PortableServer PortableServer::ObjectId * string_to_ObjectId (const char *string) { + // Passing in a nil pointer is illegal so throw an exception to + // indicate that + if (string == 0) + { + throw ::CORBA::BAD_PARAM (); + } + // Size of string // // We DO NOT include the zero terminator, as this is simply an |