e0a0e216 | 12-Oct-2024 |
David Carlier |
ext/gmp: gmp_pow fix FPE with large values. even without sanitizers, it is reproducible but with the following ``` <?php $g = gmp_init(256); var_dump(gmp_pow($g, PHP_INT
ext/gmp: gmp_pow fix FPE with large values. even without sanitizers, it is reproducible but with the following ``` <?php $g = gmp_init(256); var_dump(gmp_pow($g, PHP_INT_MAX)); ``` we get this ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==286922==ERROR: AddressSanitizer: FPE on unknown address 0x03e8000460ca (pc 0x7faf6c69de5c bp 0x400000000000004 sp 0x7ffe9843c740 T0) #0 0x7faf6c69de5c in __pthread_kill_implementation nptl/pthread_kill.c:44 #1 0x7faf6c649c81 in __GI_raise ../sysdeps/posix/raise.c:26 #2 0x7faf6db9386c in __gmp_exception (/lib/x86_64-linux-gnu/libgmp.so.10+0xd86c) (BuildId: 1af68a49fe041a5bb48a2915c3d47541f713bb38) #3 0x7faf6db938d3 in __gmp_overflow_in_mpz (/lib/x86_64-linux-gnu/libgmp.so.10+0xd8d3) (BuildId: 1af68a49fe041a5bb48a2915c3d47541f713bb38) #4 0x7faf6dbac95c in __gmpz_realloc (/lib/x86_64-linux-gnu/libgmp.so.10+0x2695c) (BuildId: 1af68a49fe041a5bb48a2915c3d47541f713bb38) #5 0x7faf6dba9038 in __gmpz_n_pow_ui (/lib/x86_64-linux-gnu/libgmp.so.10+0x23038) (BuildId: 1af68a49fe041a5bb48a2915c3d47541f713bb38) #6 0x5565ae1ccd9f in zif_gmp_pow /home/dcarlier/Contribs/php-src/ext/gmp/gmp.c:1286 #7 0x5565aee96ea9 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /home/dcarlier/Contribs/php-src/Zend/zend_vm_execute.h:1312 #8 0x5565af144320 in execute_ex /home/dcarlier/Contribs/php-src/Zend/zend_vm_execute.h:56075 #9 0x5565af160f07 in zend_execute /home/dcarlier/Contribs/php-src/Zend/zend_vm_execute.h:60439 #10 0x5565aed6fafe in zend_execute_scripts /home/dcarlier/Contribs/php-src/Zend/zend.c:1842 #11 0x5565aeae70a8 in php_execute_script /home/dcarlier/Contribs/php-src/main/main.c:2578 #12 0x5565af532f4e in do_cli /home/dcarlier/Contribs/php-src/sapi/cli/php_cli.c:964 #13 0x5565af535877 in main /home/dcarlier/Contribs/php-src/sapi/cli/php_cli.c:1334 #14 0x7faf6c633d67 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #15 0x7faf6c633e24 in __libc_start_main_impl ../csu/libc-start.c:360 #16 0x5565adc04040 in _start (/home/dcarlier/Contribs/php-src/sapi/cli/php+0x2604040) (BuildId: 949049955bdf8b7197390b1978a1dfc3ef6fdf38) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: FPE nptl/pthread_kill.c:44 in __pthread_kill_implementation ==286922==ABORTING ``` close GH-16384
show more ...
|
1e08c155 | 24-Oct-2024 |
Bob Weinand |
Merge branch 'PHP-8.4'
|
824c8160 | 24-Oct-2024 |
Bob Weinand |
Fix test without extra curl features The empty line would otherwise be required in the test and make it fail. |
1e7eba0b | 24-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
[ci skip] Fix NEWS formatting |
4a4371d3 | 24-Oct-2024 |
Tianfeng.Han |
Modify `zend_max_execution_timer.h` to export the symbols with C format (#16550) |
c5a57074 | 24-Oct-2024 |
Arnaud Le Blanc |
Merge branch 'PHP-8.4' * PHP-8.4: Fix tests: Prevent stack overflow during dtor
|
4c212b30 | 24-Oct-2024 |
Arnaud Le Blanc |
Merge branch 'PHP-8.3' into PHP-8.4 * PHP-8.3: Fix tests: Prevent stack overflow during dtor
|
f3e87e2a | 22-Oct-2024 |
Arnaud Le Blanc |
Fix tests: Prevent stack overflow during dtor On s390x the stack is smaller and/or the object dtor code uses more stack, which causes the destruction of deeply nested objects to crash in
Fix tests: Prevent stack overflow during dtor On s390x the stack is smaller and/or the object dtor code uses more stack, which causes the destruction of deeply nested objects to crash in these tests. Here I ensure that objects are released one by one at the end of the tests to avoid recursive dtor. Closes GH-16561 Fixes GH-16528
show more ...
|
551a9ef5 | 23-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.4' * PHP-8.4: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
|
d7e7e2b3 | 23-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.3' into PHP-8.4 * PHP-8.3: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
|
6d6afd9a | 23-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007
|
e1e1e64a | 23-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-16559: UBSan abort in ext/gd/libgd/gd_interpolation.c:1007 The `uchar_clamp` function was backported from old code, this backports it from new code. Closes GH-16562. |
301cda93 | 23-Oct-2024 |
Ilija Tovilo |
Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: [skip ci] Add unused asan param to configure-x64 action
|
9b7c5062 | 23-Oct-2024 |
Ilija Tovilo |
[skip ci] Add unused asan param to configure-x64 action This param is passed by nightly to all branches. Add a unused argument to older branches to avoid a warning. |
0b94cf65 | 23-Oct-2024 |
DanielEScherzer |
GH-16067: prevent invalid `abstract` during compilation of methods (GH-16069) For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anony
GH-16067: prevent invalid `abstract` during compilation of methods (GH-16069) For classes that are not declared `abstract`, produce a compiler error for any `abstract` methods. For anonymous classes, since they cannot be made abstract, the error message is slightly different. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
show more ...
|
e64e531e | 23-Oct-2024 |
Christoph M. Becker |
Merge branch 'PHP-8.4' * PHP-8.4: Dynamically xfail test case which fails on CI
|
7cc327fd | 23-Oct-2024 |
Christoph M. Becker |
Dynamically xfail test case which fails on CI This is a stop-gap measure for GH-15709 to keep CI green. Sorry, xfailed the wrong test case previously. |
cfcf39f0 | 23-Oct-2024 |
Christoph M. Becker |
Merge branch 'PHP-8.4' * PHP-8.4: Dynamically xfail test case which fails on CI
|
bdde7971 | 23-Oct-2024 |
Christoph M. Becker |
Dynamically xfail test case which fails on CI This is a stop-gap measure for GH-15709 to keep CI green. |
55e8ebe2 | 22-Oct-2024 |
Máté Kocsis |
Merge branch 'PHP-8.4' * PHP-8.4: Fix GH-16131: Prevent mixing PDO sub-classes with different DSN
|
58929919 | 20-Oct-2024 |
Máté Kocsis |
Fix GH-16131: Prevent mixing PDO sub-classes with different DSN |
dded6fdc | 22-Oct-2024 |
Ilija Tovilo |
Fix gh16508.phpt test expectation The error changed in master, not 8.4. My bad. |
207883e7 | 22-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.4' * PHP-8.4: [ci skip] Update EXTENSIONS and CODEOWNERS for ext/soap (#16542) [ci skip] Update NEWS for PHP 8.4.0RC4
|
18a925b3 | 22-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.3' into PHP-8.4 * PHP-8.3: [ci skip] Update EXTENSIONS and CODEOWNERS for ext/soap (#16542)
|
e4010fcf | 22-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: [ci skip] Update EXTENSIONS and CODEOWNERS for ext/soap (#16542)
|