servo/components/config
Mukilan Thiyagarajan ee2acaeacf
config: fix panic in PrefValue to [f64; 4] conversion (#32571)
The `Iterator::all` method consumes the input iterator `f` so when
we reuse `f` in `f.flatten().collect()` it yields an empty Vector
in the case where all the elements are successfully converted using
try_into(). This causes out of bounds access when indexing into
the resulting Vector to extract the individual components.

Fixes #32570.

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2024-06-20 08:47:13 +00:00
..
tests Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
basedir.rs clippy: fix warnings in components/config* (#31562) 2024-03-08 07:15:56 +00:00
Cargo.toml Use workspace definitions for all crates and update to the 2021 edition (#32544) 2024-06-18 09:22:08 +00:00
lib.rs remove extern crate (#30311) 2023-09-08 12:11:31 +00:00
opts.rs compositor: Remove the is_running_problem_test setting (#31589) 2024-03-09 02:29:43 +00:00
pref_util.rs config: fix panic in PrefValue to [f64; 4] conversion (#32571) 2024-06-20 08:47:13 +00:00
prefs.rs implement basic infra for ResizeObserver (#31108) 2024-06-17 16:44:07 +00:00