From 2781608a34eacc32f9262e2304a534648235be6b Mon Sep 17 00:00:00 2001 From: Paul Leathers Date: Tue, 9 Oct 2018 16:19:41 -0700 Subject: [PATCH] CVE-2018-8556 --- lib/Backend/GlobOptBailOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Backend/GlobOptBailOut.cpp b/lib/Backend/GlobOptBailOut.cpp index 5a20d2b3337..c27a7af7863 100644 --- a/lib/Backend/GlobOptBailOut.cpp +++ b/lib/Backend/GlobOptBailOut.cpp @@ -1306,7 +1306,7 @@ GlobOpt::MayNeedBailOnImplicitCall(IR::Instr const * instr, Value const * src1Va return !( baseValueType.IsString() || - (baseValueType.IsAnyArray() && baseValueType.GetObjectType() != ObjectType::ObjectWithArray) || + baseValueType.IsArray() || (instr->HasBailOutInfo() && instr->GetBailOutKindNoBits() == IR::BailOutOnIrregularLength) // guarantees no implicit calls ); }