Frank Denis 6dd0270a19
std.sort.pdq: fix out-of-bounds access in partialInsertionSort (#25253)
* std.sort.pdq: fix out-of-bounds access in partialInsertionSort

When sorting a sub-range that doesn't start at index 0, the
partialInsertionSort function could access indices below the range
start. The loop condition `while (j >= 1)` didn't respect the
arbitrary range boundaries [a, b).

This changes the condition to `while (j > a)` to ensure indices
never go below the range start, fixing the issue where pdqContext
would access out-of-bounds indices.

Fixes #25250
2025-09-17 19:54:15 -07:00
..
2025-09-03 21:45:03 -07:00
2025-09-03 01:48:46 -07:00
2024-12-19 17:10:03 -05:00
2025-07-07 22:43:51 -07:00
2025-09-17 19:45:33 -07:00
2025-08-29 17:14:26 -07:00
2025-09-03 21:46:01 -07:00
2025-07-07 22:43:51 -07:00
2025-08-29 17:14:26 -07:00
2025-07-07 22:43:51 -07:00
2025-08-30 00:48:50 -07:00
2025-08-31 12:49:18 -07:00
2025-08-28 18:30:57 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-09-08 14:45:51 -05:00
2025-08-29 17:14:26 -07:00
2025-07-14 00:14:21 -07:00
2025-08-26 09:39:09 +02:00
2024-08-22 08:44:08 +02:00
2025-09-04 01:16:23 +02:00
2025-09-11 00:18:37 -07:00
2025-07-31 22:10:11 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-07-07 22:43:51 -07:00
2025-08-29 17:14:26 -07:00
2025-08-25 16:15:17 +02:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-07-22 09:41:44 -07:00
2025-08-29 17:14:26 -07:00
2025-08-28 18:30:57 -07:00
2025-08-31 12:49:18 -07:00
2025-08-31 12:49:18 -07:00
2025-07-16 10:27:39 -07:00
2025-08-31 12:49:18 -07:00
2025-08-29 17:14:26 -07:00