[omniORB] Patch for cdrMemoryStream::bufSize()
Duncan Grisby
duncan at grisby.org
Fri Nov 6 18:16:14 UTC 2026
On Thu, 2026-11-05 at 13:01 +0000, Serguei Kolos via omniORB-list
wrote:
> 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?
Yes, thanks, I'll add that change shortly. Inside omniORB, the
bufSize() function is only used for normal cdrMemoryStreams that have
been written to, which is why it has not been a problem inside omniORB.
Thanks,
Duncan.
--
Duncan Grisby <duncan at grisby.org>
More information about the omniORB-list
mailing list