[omniORB] Patch for cdrMemoryStream::bufSize()

Serguei Kolos serguei.kolos at cern.ch
Thu Nov 5 13:01:03 UTC 2026


Hello

I’m reusing the cdrMemoryStream class in my code and noticed that, unlike the other methods of this class, bufSize()
does not distinguish between a read-only external buffer and a buffer managed by the stream for serialization.
As a result, it returns an incorrect value when an external buffer is used, since pd_outb_mkr is always set to zero in this case.

I’ve attached a patch that addresses this issue.
Would it be possible to review and merge this patch into the omniORB source?

Cheers,
Serguei

-------------- next part --------------
A non-text attachment was scrubbed...
Name: b3837af1dbfbcc27d86b2b41985dccb392aeb922.diff
Type: application/octet-stream
Size: 599 bytes
Desc: b3837af1dbfbcc27d86b2b41985dccb392aeb922.diff
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20261105/36564097/attachment.obj>


More information about the omniORB-list mailing list