Re: readlink null termination problem

2004-01-05 Thread Igor Pechtchanski
On Mon, 5 Jan 2004, Christopher Faylor wrote: > On Tue, Jan 06, 2004 at 08:17:14AM +0800, peter garrone wrote: > >I was having a problem with mkcramfs on cygwin creating symbolic links > >for the compressed linux filesystem. > > > >mkcramfs uses malloc to allocate a buffer that it sends to the rea

Re: readlink null termination problem

2004-01-05 Thread Christopher Faylor
On Tue, Jan 06, 2004 at 08:17:14AM +0800, peter garrone wrote: >I was having a problem with mkcramfs on cygwin creating symbolic links >for the compressed linux filesystem. > >mkcramfs uses malloc to allocate a buffer that it sends to the readlink function in >cygwin path.cc >That function uses m

readlink null termination problem

2004-01-05 Thread peter garrone
I was having a problem with mkcramfs on cygwin creating symbolic links for the compressed linux filesystem. mkcramfs uses malloc to allocate a buffer that it sends to the readlink function in cygwin path.cc That function uses memcpy to do a copy of the link into a buffer. Neither mkcramfs or rea