php-src/ext/pdo_firebird/tests
Niels Dossche 21e0305f5d Fix GH-10908: Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userland
The alignment of sqldata is in most cases only the basic alignment,
so the code type-puns it to a larger type, it *can* crash due to the
misaligned access. This is only an issue for types > 4 bytes because
every sensible system requires an alignment of at least 4 bytes for
allocated data.

Even though this patch uses memcpy, the compiler is smart enough to
optimise it to something more efficient, especially on x86.
This is just the usual approach to solve these alignment problems.

Actually, unaligned memory access is undefined behaviour, so even on x86
platforms, where the bug doesn't cause a crash, this can be problematic.
Furthermore, even though the issue talks about a 64-bit kernel and
32-bit userspace, this doesn't necessarily need to be the case to
trigger this crash.

Test was Co-authored-by: rvk01

Closes GH-10920.
2023-03-27 21:01:06 +02:00
..
bug_47415.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_48877.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_53280.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_62024.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_64037.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_72583.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_72931.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_73087.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_74462.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_76448.data Fix #76448: Stack buffer overflow in firebird_info_cb 2021-06-20 22:01:06 -07:00
bug_76448.phpt Disable lsan on new PDO firebird tests 2021-06-29 16:49:50 +02:00
bug_76449.data Fix #76449: SIGSEGV in firebird_handle_doer 2021-06-20 21:59:51 -07:00
bug_76449.phpt Disable lsan on new PDO firebird tests 2021-06-29 16:49:50 +02:00
bug_76450.data Fix #76450: SIGSEGV in firebird_stmt_execute 2021-06-20 21:59:37 -07:00
bug_76450.phpt Disable lsan on new PDO firebird tests 2021-06-29 16:49:50 +02:00
bug_76452.data Fix #76452: Crash while parsing blob data in firebird_fetch_blob 2021-06-20 21:56:07 -07:00
bug_76452.phpt Fix test to require PDO_Firebird 2022-06-02 16:22:45 +02:00
bug_76488.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_77863.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_80521.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
bug_aaa.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
common.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
CONFLICTS Add CONFLICTS file for PDO firebird tests 2021-05-05 15:24:30 +02:00
connect.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
ddl.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
dialect_1.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
execute.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
execute_block.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
gh10908.phpt Fix GH-10908: Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userland 2023-03-27 21:01:06 +02:00
ignore_parammarks.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
payload_server.inc Add simple Firebird payload fake server to test suite 2021-05-06 14:47:57 +02:00
payload_server.php Add simple Firebird payload fake server to test suite 2021-05-06 14:47:57 +02:00
payload_test.data Add simple Firebird payload fake server to test suite 2021-05-06 14:47:57 +02:00
payload_test.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
rowCount.phpt Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
skipif.inc Port skipif.inc files to EXTENSIONS 2021-06-11 16:27:50 +02:00
testdb.inc Reindent phpt files 2020-02-03 22:52:20 +01:00