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
Máté Kocsis
59ae6a9ff3
Declare HASH_HMAC in stubs
2022-06-04 11:22:44 +02:00
Christoph M. Becker
012ef7912a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix #81714 : segfault when serializing finalized HashContext
2022-04-05 13:36:50 +02:00
Christoph M. Becker
187f5a362d
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #81714 : segfault when serializing finalized HashContext
2022-04-05 13:36:07 +02:00
Christoph M. Becker
c2eafc29f5
Fix #81714 : segfault when serializing finalized HashContext
...
We must not allow to serialize already finalized `HashContext`s, since
the internal context is already freed. Since there is not much point
in serializing finalized `HashContext`s, we just bail out in that case.
Closes GH-8265.
2022-04-05 13:25:22 +02:00
Christoph M. Becker
77b54248c8
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file
2021-12-26 12:59:38 +01:00
Christoph M. Becker
a6ddd1a14d
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file
2021-12-26 12:59:06 +01:00
Christoph M. Becker
fd3fc5c193
Fix GH-7826: Inconsistent argument name in hash_hmac_file and hash_file
...
Like `hash_file()`, `hash_hmac_file()` expects a filename, and not some
string data. Fixing this now, constitutes a (hopefully small) BC break
though.
Closes GH-7828.
2021-12-26 12:55:53 +01:00
Anatol Belski
28287572a1
hash: Upgrade xxHash to 0.8.1
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-12-25 19:00:09 +01:00
Christoph M. Becker
fe2c13cda4
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-7759: Incorrect return types for hash() and hash_hmac()
2021-12-12 15:47:39 +01:00
Christoph M. Becker
a708db9c8a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-7759: Incorrect return types for hash() and hash_hmac()
2021-12-12 15:47:19 +01:00
Christoph M. Becker
0b3a937670
Fix GH-7759: Incorrect return types for hash() and hash_hmac()
...
`hash()` and `hash_hmac()` never return `false`; only `hash_file()` and
`hash_hmac_file()` return `false` in case the data cannot be read.
Closes GH-7760.
2021-12-12 15:39:55 +01:00
Remi Collet
bc9d604430
Merge branch 'PHP-8.1'
...
* PHP-8.1:
fix [-Wstrict-prototypes] buid warnings
2021-11-24 14:55:30 +01:00
Remi Collet
ef2fd0e5b5
fix [-Wstrict-prototypes] buid warnings
2021-11-24 14:55:11 +01:00