Ville Vesilehto
051d8d6f05
fix(plugin): normalize panics on invalid origins ( #7563 )
...
Previously OriginsFromArgsOrServerBlock accessed the output of
NormalizeExact() by index 0, which could panic when normalization
returned an empty slice on error. This happens with malformed input
surfaced by fuzzing, for example "unix://<non‑UTF8>".
This change hardens normalization in the server block path.
If normalization yields no entries, the original value is preserved.
The function still returns a newly copied slice.
This preserves legacy semantics for valid inputs while eliminating
the crash on malformed ones. Added tests to validate.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2025-09-18 19:15:40 -07:00
..
2025-04-04 14:27:39 -04:00
2025-06-01 16:30:01 -07:00
2025-07-04 02:39:19 -07:00
2024-07-01 11:18:35 -04:00
2025-05-28 17:50:55 -07:00
2025-05-23 09:23:14 -07:00
2023-07-10 07:49:52 -07:00
2025-09-10 13:08:27 -07:00
2020-10-28 10:56:35 -07:00
2023-08-14 15:14:09 +02:00
2025-05-28 17:50:55 -07:00
2025-09-10 13:08:27 -07:00
2020-09-24 18:14:41 +02:00
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-18 19:14:51 -07:00
2025-05-28 17:50:55 -07:00
2025-09-10 13:08:27 -07:00
2025-09-05 11:45:30 -07:00
2025-09-10 13:08:27 -07:00
2025-09-15 14:28:26 -07:00
2025-06-04 14:36:04 -07:00
2025-09-12 14:43:56 -07:00
2025-09-01 18:05:15 -07:00
2024-03-11 16:09:09 -04:00
2025-06-05 10:10:58 +03:00
2020-10-28 10:56:35 -07:00
2025-05-18 22:58:16 -07:00
2025-09-10 13:08:27 -07:00
2025-08-05 11:34:38 -07:00
2020-11-05 15:02:07 +01:00
2025-09-10 13:08:27 -07:00
2022-03-16 12:24:58 -04:00
2023-06-09 18:08:23 +02:00
2025-09-13 15:15:25 -07:00
2021-03-16 10:55:21 +01:00
2024-11-13 09:40:25 -08:00
2023-08-14 15:14:09 +02:00
2025-09-13 15:14:10 -07:00
2025-08-25 13:06:19 -07:00
2025-06-04 14:36:04 -07:00
2025-09-09 14:30:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-06-05 10:10:58 +03:00
2025-09-10 13:08:27 -07:00
2025-09-01 18:04:35 -07:00
2025-09-10 13:08:27 -07:00
2023-11-10 14:16:47 -08:00
2025-09-10 13:08:27 -07:00
2025-03-24 10:37:28 -04:00
2024-03-07 14:24:38 -05:00
2025-08-20 16:00:21 -07:00
2025-09-15 10:17:06 -07:00
2025-04-04 14:27:39 -04:00
2025-09-15 10:17:35 -07:00
2023-08-14 15:14:09 +02:00
2025-09-02 00:41:06 -07:00
2025-09-10 13:08:27 -07:00
2020-09-24 20:30:39 +02:00
2019-08-24 18:14:25 +00:00
2018-07-19 16:23:06 +01:00
2025-09-18 19:15:40 -07:00
2025-09-18 19:15:40 -07:00
2025-08-29 05:27:11 -07:00
2020-09-24 18:14:41 +02:00