[omniORB] omniORB 4.0.5: uninitialized memory in union with enum

Teemu Torma teemu at torma.org
Wed Feb 2 12:50:57 GMT 2005


When decoding union with enum discriminator, p_enum.size is not 
initalized (found by valgrind).  It mostly happens to work since the 
default size is CORBA::Long.

Please see the attached patch I made to tcParser.cc to get p_enum 
initialized.  Other types of discriminators should still work, since 
data pointers should be in the same address in tcDescriptor union.

Teemu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcParser.cc.patch
Type: text/x-diff
Size: 725 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050202/3c22df43/tcParser.cc.bin


More information about the omniORB-list mailing list