bug in ORBacus 4.0.5
Vladimir Romanovski <[email protected]>
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <[email protected]> |
Hi,
It seems to me that char* InputStreamImpl::read_string() has a bug.
What would happend if read_ulong() returns (unsigned long) -1 ?
I propose to change the condition check:
if(buf_ -> cur_ + len > buf_ -> last_)
by
if( buf_ -> last_ - buf_ -> cur_ < len )
Thanks,
Vladimir Romanovski
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html