[PATCH] Fix wordsize-32 mmap offset for negative value (BZ#18877)

Dmitry V. Levin ldv@altlinux.org
Fri Aug 28 07:05:00 GMT 2015


On Thu, Aug 27, 2015 at 08:06:55PM -0300, Adhemerval Zanella wrote:
> On 27-08-2015 18:48, Dmitry V. Levin wrote:
> > On Thu, Aug 27, 2015 at 06:20:50PM -0300, Adhemerval Zanella wrote:
> > [...]
> >> Thanks for the review, what about now:
> >>
> >> --
> >>
> >>        [BZ #18877]
> >>        * posix/Makefile (tests): Add tst-mmap
> > 
> > It's called tst-mmap-offset now.
> > Do not forget about trailing dot.
> > 
> >>        * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
> >>        offset calculation for negative values.
> >>        * posix/tst-mmap-offset.c: New file.
> > 
> > Let's keep the list of files in some order.
> > 
> >> --- /dev/null
> >> +++ b/posix/tst-mmap-offset.c
> >> @@ -0,0 +1,67 @@
> >> +/* BZ #18877 mmap offset test.
> >> +
> >> +   Copyright (C) 2015 Free Software Foundation, Inc.
> >> +   This file is part of the GNU C Library.
> > 
> > Contributed by me, 2015. :)
> 
> We do not use 'Contributed by' anymore, we use it the ChangeLog entry
> (which I will add you as well).

Indeed.

> >> +/* Check if negative offset are handled correctly by mmap.  */;
> > 
> > offsetS are.
> > The trailing semicolon is not needed.

LGTM, assuming these typos are corrected.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150828/5a4fb415/attachment.sig>


More information about the Libc-alpha mailing list