On 04 Jan 2001 23:15:04 +0100, Matthias Hessler wrote:
> 
> Hi,
> 
> while trying to use dlp_ReadAppBlock and dlp_ReadSortBlock I noticed that
> they do not properly handle the case where no data is returned, or an error
> occured. If a buffer has been provided for the data they will try to memcpy
> the data in, using negative numbers as the length for this!
> For me, this gives a segmentation fault.
> 
> Has anyone else taken note of this behavior?

I think you are incorrect in the case of dlp_ReadAppBlock because of the
Expect(2) macro call.  You appear to be right in the case of the
dlp_ReadSortBlock call because the is no Expect macro call to return in
the case of error.  I will look into this week.

Btw, thanks for all the bug reports.

-JP

-- 
--
=======================================================================
JP Rosevear                             [EMAIL PROTECTED]
Helix Code Inc.                         http://www.helixcode.com

_______________________________________________
Pilot-unix mailing list
[EMAIL PROTECTED]
http://hcirisc.cs.binghamton.edu/mailman/listinfo/pilot-unix

Reply via email to