diff options
author | Mukilan Thiyagarajan <mukilan@igalia.com> | 2024-06-20 14:17:13 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 08:47:13 +0000 |
commit | ee2acaeacf2bdb522815358b8c9b87a09208f118 (patch) | |
tree | db76d23e57d3257d7d395aa02bdd2c0a2ad1c484 /components/layout_2020/flow/inline | |
parent | 64b872ec0d7c0f6e53dadb01968576569d91f8d0 (diff) | |
download | servo-ee2acaeacf2bdb522815358b8c9b87a09208f118.tar.gz servo-ee2acaeacf2bdb522815358b8c9b87a09208f118.zip |
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>
Diffstat (limited to 'components/layout_2020/flow/inline')
0 files changed, 0 insertions, 0 deletions