Bug #52550 [Com]: integer undefined behaviors executed during "make test"

From: Date: Mon, 24 Jan 2022 10:33:31 +0000
Subject: Bug #52550 [Com]: integer undefined behaviors executed during "make test"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239273@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52550&edit=1

 ID:                 52550
 Comment by:         pankajkumarsingh8757 at gmail dot com
 Reported by:        regehr at cs dot utah dot edu
 Summary:            integer undefined behaviors executed during "make
                     test"
 Status:             No Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   linux
 PHP Version:        master
 Block user comment: N
 Private report:     N

 New Comment:

factor because the digestive benefits are the only claims
https://bestpenispump.org/


Previous Comments:
------------------------------------------------------------------------
[2022-01-24 10:31:12] pankajkumarsingh8757 at gmail dot com

It’s actually almost as sweet as real fruit juice, which might be off-putting to folks who are
averse to sugary food
https://bestpenisextender.org/

------------------------------------------------------------------------
[2014-12-30 10:41:38] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

------------------------------------------------------------------------
[2013-12-06 17:50:50] regehr at cs dot utah dot edu

See below.  I got this by using "clang -fsanitize=undefined" to compile today's PHP
from git, then running "make test".  These kinds of problems are generally pretty easy to
debug by putting an assertion in front of each offending line of code.

Zend/zend_execute_API.c:146:46: runtime error: index -1 out of bounds for type 'HashTable
*[32]'

Zend/zend_execute_API.c:146:46: runtime error: index -1 out of bounds for type 'HashTable
*[32]'

Zend/zend_operators.c:1287:2: runtime error: shift exponent 65 is too large for 64-bit type
'long'

Zend/zend_operators.c:1307:2: runtime error: shift exponent -1 is negative

Zend/zend_operators.c:1307:2: runtime error: shift exponent 65 is too large for 64-bit type
'long'

Zend/zend_operators.h:108: runtime error: value nan is outside the range of representable values of
type 'long'

ext/date/lib/parse_tz.c:135:35: runtime error: signed integer overflow: 255 * 16777216 cannot be
represented in type 'int'

ext/phar/zip.c:150:34: runtime error: left shift of negative value -11

ext/sqlite3/libsqlite/sqlite3.c:57012:22: runtime error: member access within null pointer of type
'Mem' (aka 'struct Mem')

ext/standard/crypt_freesec.c:632:15: runtime error: left shift of negative value -61

ext/standard/math.c:148:24: runtime error: signed integer overflow: 14 - -2147483648 cannot be
represented in type 'int'

ext/standard/math.c:41: runtime error: value -inf is outside the range of representable values of
type 'int'

ext/standard/string.c:1671: runtime error: value 1.01235e+11 is outside the range of representable
values of type 'int'

ext/standard/string.c:1671: runtime error: value 1.05e+11 is outside the range of representable
values of type 'int'

ext/standard/url_scanner_ex.re:414:57: runtime error: member access within null pointer of type
'url_adapt_state_ex_t'

------------------------------------------------------------------------
[2013-12-05 19:55:36] regehr at cs dot utah dot edu

Sure I'll do this tonight.

------------------------------------------------------------------------
[2013-12-05 19:49:43] mike@php.net

Any chance on getting an updated report or some automatic report?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=52550


--
Edit this bug report at https://bugs.php.net/bug.php?id=52550&edit=1


Thread (24 messages)

« previous php.bugs (#239273) next »