Re: off by 1 bug in poa.c



On Fri, Mar 28, 2003 at 04:19:23PM +0000, Michael Meeks wrote:
> Hi Paco,
> 
> On Tue, 2003-03-25 at 22:09, Paco Moya wrote:
> > In ORBit 2.6.0 poa.c:1340 it can be read:
> 
> 	Looks right to me off hand; it seems like it's checking for a '\0'
> inside the _buffer. I'd imagine reading off the end of that (length+1)
> would be a bad move / memory problem.
> 
> 	What issue are you seeing here ? do you have a regression test we can
> easily add to test/everything to test this problem now and in future ?

Either ObjectId_to_string or string_to_ObjectId is wrong.

IMHO a sequence of octets should not contain the terminal '\0'

Remember ObjectId is not a string, but a sequence of octets. '\0' is
a valid octet inside _buffer.

Cheers,
	Paco




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]