1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/ext
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
..
2023-09-26 21:44:00 +02:00
2023-11-23 16:06:00 +00:00
2023-11-29 20:52:01 +01:00
2023-11-22 20:39:29 -06:00
2023-10-28 15:03:17 +02:00
2023-08-19 23:09:41 +01:00
2023-07-10 13:34:21 +02:00
2023-05-13 18:53:35 +01:00
2023-09-06 01:57:28 +01:00
2023-09-22 10:26:01 +02:00
2023-11-10 00:08:09 +01:00
2023-07-17 07:09:34 +01:00
2023-11-27 18:19:02 +00:00
2023-08-04 21:08:57 +02:00
2023-11-29 20:52:01 +01:00
2023-11-14 14:56:29 +01:00