Re: svn commit: r277798 - head/bin/expr

2015-01-27 Thread NGie Cooper
On Tue, Jan 27, 2015 at 10:04 AM, Stefan Esser wrote: > Author: se > Date: Tue Jan 27 18:04:41 2015 > New Revision: 277798 > URL: https://svnweb.freebsd.org/changeset/base/277798 > > Log: > Fix overflow check for multiplication: > - Add special test to detect the case of -1 * INTMAX_MIN > -

svn commit: r277798 - head/bin/expr

2015-01-27 Thread Stefan Esser
Author: se Date: Tue Jan 27 18:04:41 2015 New Revision: 277798 URL: https://svnweb.freebsd.org/changeset/base/277798 Log: Fix overflow check for multiplication: - Add special test to detect the case of -1 * INTMAX_MIN - Protect against elimination of the test division by the optimizer G