Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-22 Thread Konstantin Belousov
On Sat, May 21, 2016 at 06:29:50PM -0700, Chris Torek wrote: > On the other hand, since most C compilers don't bother to trap > signed integer overflow, but some can, signed integers may behave > just as badly. :-) > > Overall I personally find the rules simpler for unsigned integers >

Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Bruce Evans
On Fri, 20 May 2016, Conrad Meyer wrote: On Fri, May 20, 2016 at 6:10 PM, Bruce Evans wrote: On Fri, 20 May 2016, Conrad Meyer wrote: On Fri, May 20, 2016 at 4:02 PM, Bruce Evans wrote: On Fri, 20 May 2016, Konstantin Belousov wrote: ---

Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Conrad Meyer
On Fri, May 20, 2016 at 6:10 PM, Bruce Evans wrote: > On Fri, 20 May 2016, Conrad Meyer wrote: > >> On Fri, May 20, 2016 at 4:02 PM, Bruce Evans wrote: >>> >>> On Fri, 20 May 2016, Konstantin Belousov wrote: >>> ---

Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Bruce Evans
On Fri, 20 May 2016, Conrad Meyer wrote: On Fri, May 20, 2016 at 4:02 PM, Bruce Evans wrote: On Fri, 20 May 2016, Konstantin Belousov wrote: --- head/sys/i386/i386/sys_machdep.cFri May 20 19:46:25 2016 (r300331) +++ head/sys/i386/i386/sys_machdep.cFri May 20

Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Conrad Meyer
On Fri, May 20, 2016 at 4:02 PM, Bruce Evans wrote: > On Fri, 20 May 2016, Konstantin Belousov wrote: > >> --- head/sys/i386/i386/sys_machdep.cFri May 20 19:46:25 2016 >> (r300331) >> +++ head/sys/i386/i386/sys_machdep.cFri May 20 19:50:32 2016 >> (r300332) >> @@

Re: svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Bruce Evans
On Fri, 20 May 2016, Konstantin Belousov wrote: Log: Check for overflow and return EINVAL if detected. Backport this and r300305 to i386. PR:209661 Reported and reviewed by: cturt Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified:

svn commit: r300332 - in head/sys: amd64/amd64 i386/i386

2016-05-20 Thread Konstantin Belousov
Author: kib Date: Fri May 20 19:50:32 2016 New Revision: 300332 URL: https://svnweb.freebsd.org/changeset/base/300332 Log: Check for overflow and return EINVAL if detected. Backport this and r300305 to i386. PR: 209661 Reported and reviewed by: cturt Sponsored by: The FreeBSD