[PATCH] Fix mmap stdio bug

Ulrich Drepper drepper@redhat.com
Mon Feb 18 23:18:00 GMT 2002


Jakub Jelinek <jakub@redhat.com> writes:

> I think the patch is self-explaining and I'm not sure how useful is to
> include a testcase for this into the testsuite (on ia64 ld could not link
> crti.o because it was trying to fseek to a location in the file which
> contained '\xff').

I think test cases are always useful.

> 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
> 	pointer before dereferencing.

The patch is in now.  Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list