Bug 1373

Summary: Incorrect zero-copy optimizations for object keys
Product: TAO Reporter: Carlos O'Ryan <coryan>
Component: ORBAssignee: DOC Center Support List (internal) <tao-support>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 1.2.5   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1277    
Attachments: Fixes the bug by disabling zero-copy when not appropriate.

Description Carlos O'Ryan 2002-11-24 16:42:06 CST
The implementation of the CDR extration operator (>>) for object keys and other
"TAO_opaque" objects is incorrect.  More specifically, it does not take into
account if the source data is zero-copyable.
Comment 1 Carlos O'Ryan 2002-11-24 16:42:40 CST
This bug can result in crashes.  I will submit a patch, so there is no reason
not to get it fixed for 1.3
Comment 2 Carlos O'Ryan 2002-11-24 16:44:38 CST
Created attachment 163 [details]
Fixes the bug by disabling zero-copy when not appropriate.
Comment 3 Nanbor Wang 2002-11-24 21:46:31 CST
Sounds neat! Would you happen to have a test case for this? Please go ahead and 
check this in or let me know and I can check this in. 
Comment 4 Nanbor Wang 2002-11-30 22:38:26 CST
Fixed and here is the relevant ChangeLog entry 

Tue Nov 26 00:01:07 2002  Balachandran Natarajan  <bala@isis-server.isis.vanderb
ilt.edu>
Comment 5 Nanbor Wang 2002-11-30 22:38:55 CST
Forgot to mark it as fixed:(