Gina Peter Banyard
f01bafc340
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
ext/hash: Fix GH-16711: Segfault in mhash()
ext/hash: Add failing tests for GH-16711
2024-11-10 20:16:33 +00:00
Gina Peter Banyard
1b379f5e55
ext/hash: Fix GH-16711: Segfault in mhash()
...
Closes GH-16713
2024-11-10 20:15:44 +00:00
Gina Peter Banyard
fc8f30d312
ext/hash: Add failing tests for GH-16711
2024-11-10 20:14:21 +00:00
Niels Dossche
c38c6acfa8
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix crash when converting array data for array in shm in xxh3
2024-08-05 22:07:01 +02:00
Niels Dossche
ca84662c87
Fix crash when converting array data for array in shm in xxh3
...
Closes GH-15237.
2024-08-05 22:06:11 +02:00
Peter Kokot
f702437cad
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Append -Wno-implicit-fallthrough flag conditionally (#13331 )
2024-07-22 06:58:01 +02:00
Peter Kokot
d20d11375f
Append -Wno-implicit-fallthrough flag conditionally ( #13331 )
...
Older GCC versions (< 7.0) don't support the -Wno-implicit-fallthrough
compiler flag. This adds the flag conditionally in case some other
compiler will run into same issue.
Fixes GH-13330
2024-07-22 06:57:04 +02:00
Saki Takamachi
ccdbbdc242
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
ext/hash: Swap the checking order of __has_builtin and __GNUC__ (#14185 )
2024-05-10 09:38:42 +09:00
Saki Takamachi
12dc51976b
ext/hash: Swap the checking order of __has_builtin and __GNUC__ ( #14185 )
...
closes #14185
2024-05-10 09:37:13 +09:00
Niels Dossche
4269f046c2
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix 32-bit ext/hash build
2023-12-13 19:33:20 +01:00
Niels Dossche
2ee4d358dc
Fix 32-bit ext/hash build
2023-12-13 19:33:09 +01:00
Niels Dossche
cd179171cc
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12936: hash() function hangs endlessly if using sha512 on strings >= 4GiB
2023-12-12 19:57:47 +01:00
Niels Dossche
2b8c00850b
Fix GH-12936: hash() function hangs endlessly if using sha512 on strings >= 4GiB
...
There's two problems:
- Some loops used `unsigned int` instead of `size_t`.
- The 2*N-bit addition that is emulated using 2 N bit numbers has a bug:
it first truncated the number to 32/64 bit and only then shifted. This
resulted in the wrong length info stored inside the resulting hash.
Closes GH-12937.
2023-12-12 19:57:06 +01:00
Niels Dossche
4bb27e2d9b
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach
Fix GH-12186: segfault copying/cloning a finalized HashContext
2023-09-16 21:28:24 +02:00
Niels Dossche
5df473d2c7
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach
Fix GH-12186: segfault copying/cloning a finalized HashContext
2023-09-16 21:24:20 +02:00
Max Semenik
10f5a06d3c
Fix GH-12186: segfault copying/cloning a finalized HashContext
...
Closes GH-12186.
Closes GH-12187.
2023-09-16 21:18:27 +02:00
Peter Kokot
dff4e40da2
Remove unused PHP_HASH variable ( #11653 )
...
This was used when hash extension wasn't always available.
2023-07-19 07:31:03 +02:00
Ilija Tovilo
791ca5d1db
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix hash_pbkdf2 options parameter
2023-07-18 19:24:03 +02:00
Ilija Tovilo
e8c9c73118
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix hash_pbkdf2 options parameter
2023-07-18 19:23:10 +02:00
Ilija Tovilo
7cae6eb8db
Fix hash_pbkdf2 options parameter
...
The value needs to be initialized to NULL as it is optional. Furthermore, the
parameter was completely missing in the stub signature.
Closes GH-11731
2023-07-18 19:21:13 +02:00
Michael Voříšek
bd03c0343e
Allow CTE on more CTE safe functions ( #10771 )
2023-05-16 21:59:26 +02:00
Niels Dossche
f6e296dbb9
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11180: hash_file() appears to be restricted to 3 arguments
2023-05-07 17:40:29 +02:00
Niels Dossche
e6730565b6
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11180: hash_file() appears to be restricted to 3 arguments
2023-05-07 17:37:25 +02:00
Niels Dossche
baa07f3de3
Fix GH-11180: hash_file() appears to be restricted to 3 arguments
...
Closes GH-11198.
2023-05-07 17:33:28 +02:00
Nils
36559fb264
Remove unused macro PHP_FNV1_32A_INIT and PHP_FNV1A_64_INIT ( #11114 )
2023-05-03 18:46:31 +02:00
Javier Eguiluz
732d92c0e5
[skip ci] Fix various typos and grammar issues ( #11143 )
2023-04-28 11:05:32 +02:00
Mingli Yu
adcb38b1ff
xxhash.h: Fix GCC 12 -Og
...
Change whether to inline XXH3_hashLong_withSecret to a config option
Ref: ace22bddc7
Signed-off-by: Mingli Yu <mingli.yu@windriver.com >
Closes GH-11062.
2023-04-13 12:20:20 +01:00
David Carlier
0c0b41d875
Merge branch 'PHP-8.2'
2023-02-25 14:36:56 +00:00
David Carlier
7638640529
Fix GH-10659: hash/xxhash applying build upstream fix
...
ref: 6189ecd3d4
replacing the C++ compile time assert for C11 one.
Closes GH-10693.
2023-02-25 14:36:35 +00:00
Máté Kocsis
7936c8085e
Fix GH-8329 Print true/false instead of bool in error and debug messages ( #8385 )
2023-01-23 10:52:14 +01:00
George Peter Banyard
1d104f2e58
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Handle exceptions from __toString in XXH3's initialization
Fix phpdbg segmentation fault in case of malformed input
2023-01-17 14:16:37 +00:00
George Peter Banyard
dd5c5ca7a5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Handle exceptions from __toString in XXH3's initialization
Fix phpdbg segmentation fault in case of malformed input
2023-01-17 14:16:18 +00:00
Niels Dossche
7463e70b1e
Handle exceptions from __toString in XXH3's initialization
...
The initialization routine for XXH3 was not prepared for exceptions from seed.
Fix this by using try_convert_to_string.
For discussion, please see: GH-10305
Closes GH-10352
Signed-off-by: George Peter Banyard <girgias@php.net >
2023-01-17 14:14:12 +00:00
Niels Dossche
a60c6ee0ac
Mark constant static arrays in function bodies actually as const ( #10325 )
2023-01-15 14:51:31 +00:00
Ilija Tovilo
b96b88b669
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix compilation on RHEL 7 ppc64le (gcc 4.8)
2022-12-11 17:30:56 +01:00
Mattias Ellert
a83923044c
Fix compilation on RHEL 7 ppc64le (gcc 4.8)
...
Fixes GH-10077
Closes GH-10078
2022-12-11 17:30:31 +01:00
Jorg Adam Sowa
77ee92a50c
Remove unnecessary usage of CONST_CS
...
Closes GH-9685.
2022-11-28 17:12:07 +01:00
Stanislav Malyshev
acbd5c1164
Merge branch 'PHP-8.1' into PHP-8.2
2022-10-21 00:05:35 -06:00
Stanislav Malyshev
27aed8f345
Merge branch 'PHP-8.0' into PHP-8.1
2022-10-21 00:05:30 -06:00
Stanislav Malyshev
beff4278a4
Merge branch 'PHP-7.4' into PHP-8.0
2022-10-21 00:04:43 -06:00
Stanislav Malyshev
248f647724
Fix bug #81738 (buffer overflow in hash_update() on long parameter)
2022-10-20 23:57:35 -06:00
Máté Kocsis
b4ec3e9bc0
Do not generate CONST_CS when registering constants ( #9439 )
2022-08-28 08:27:19 +02:00
Máté Kocsis
e328c68305
Rename @cname to @cvalue in stubs ( #9043 )
...
@cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as @cvalue would be more appropriate.
2022-07-19 15:11:42 +02:00
Derick Rethans
7db9c2a2c3
Fixed typo in configure message
2022-07-18 15:18:08 +01:00
Remi Collet
55a88f36b6
add SensitiveParameter as known string and use it in arginfo
2022-07-18 11:43:33 +02:00
Tim Düsterhus
342e18f105
Support the actual #[\SensitiveParameter] attribute in stubs ( #8836 )
2022-07-12 12:43:44 +02:00
David Carlier
bfe6f9e66a
Introduction of timing attack safe bcmp implementation.
...
Nothing new but to refactor usage b/w hash and password
extensions but using volatile pointers to be a bit safer,
allowing to expand its usage eventually.
2022-06-20 16:30:30 +01:00
Pierrick Charron
6fd2b39397
Indent with TAB in .h files generated by gen_stub
2022-06-13 08:55:54 -04:00
Tim Düsterhus
0d4147f0fb
Mark parameter in ext/hash as sensitive
2022-06-13 11:09:12 +02:00
Máté Kocsis
debd38f851
Add support for sensitive parameters in stubs
2022-06-04 18:15:05 +02:00