[omniORB] Potential bug in omniORB 4.1

Duncan Grisby duncan at grisby.org
Fri Mar 9 15:35:54 GMT 2007


On Wednesday 7 March, Peter Housel wrote:

> Almost... I had to add the following patch before it would work:
> 
> --- typecode.cc	07 Mar 2007 20:11:51 -0800	1.40.2.14
> +++ typecode.cc	07 Mar 2007 20:41:41 -0800	
> @@ -6046,6 +6046,7 @@
>  			CORBA::COMPLETED_NO);
>  	CORBA::ULong c;
>          cdrAnyMemoryStream& ms = label.PR_streamToRead();
> +        ms.rewindInputPtr();
>          c <<= ms;
>  	lbl_value = c;
>  	break;

Sorry about that. Your addition is actually also wrong, because it isn't
thread safe against two threads using the same any at the same time. The
correct fix creates a wrapper memory stream that has its own set of
index pointers.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list