Re: bug in ORBacus 4.0.5

David Weir <[email protected]>
Newsgroups gmane.comp.corba.orbacus
Organization Object Oriented Concepts, Inc. - An IONA Company
Message-ID <[email protected]>
Hello Vladimir,

On Tue, Nov 30, 2004 at 11:23:49AM +0100, Vladimir Romanovski wrote:
> 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

You are correct. An additional check has been added to subsequent
versions of Orbacus to guard against this scenario.

Cheers,
Dave

-- 
David Weir                          
Team Orbacus - Your CORBA Source
E-Mail: [email protected]
Phone: (709) 738-3725 x20
WWW: http://www.orbacus.com
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.