[PATCH] sh: pread/pwrite doesn't handle negative offset correctly

Mike Frysinger vapier at gentoo.org
Mon Apr 30 21:23:32 UTC 2007


On Thursday 26 April 2007, Carmelo AMOROSO wrote:
> running LTP test suite on uClibc-nptl for sh4 I found a bug into pread
> and pwrite functions.
> When the offset is negative it is not correctly handled due to a missing
> shift operation,
> so it is passed to the syscall as the highest unsigned positive value.
> Same bug occurs into trunk.
> Attached patch fixes the trunk code (libc/sysdeps/linux/sh/pread_write.c)

merged, cheers
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070430/1a6d45aa/attachment-0002.pgp 


More information about the uClibc mailing list