From d8574b44ccde97fc7111b4d983f5303e200f0ae8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 17 Jul 2022 18:44:27 -0600 Subject: [PATCH] [CoverageFormat2] Fix iterator to avoid infinite loop on invalid data. Fixes https://oss-fuzz.com/testcase-detail/5304497047470080 --- src/OT/Layout/Common/CoverageFormat2.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OT/Layout/Common/CoverageFormat2.hh b/src/OT/Layout/Common/CoverageFormat2.hh index 874c892c1..f8e5afe08 100644 --- a/src/OT/Layout/Common/CoverageFormat2.hh +++ b/src/OT/Layout/Common/CoverageFormat2.hh @@ -187,6 +187,7 @@ struct CoverageFormat2_4 * consecutive and monotonically increasing, * ie. iota(). */ i = c->rangeRecord.len; + j = 0; return; } }