Просмотр исходного кода

Fix for xplat build for CVE-2018-0767

Michael Ferris 8 лет назад
Родитель
Сommit
9a77b67e62
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/Runtime/Library/JavascriptArray.inl

+ 1 - 1
lib/Runtime/Library/JavascriptArray.inl

@@ -898,7 +898,7 @@ SECOND_PASS:
             {
                 isInlineSegment = JavascriptArray::IsInlineSegment(startSeg, this);
                 // startIndex is in between prev and startIndex
-                current = SparseArraySegment<T>::AllocateSegmentImpl<false>(recycler, startIndex, length, nullptr);
+                current = SparseArraySegment<T>::template AllocateSegmentImpl<false>(recycler, startIndex, length, (SparseArraySegmentBase*)nullptr);
                 LinkSegments((Js::SparseArraySegment<T>*)startPrev, current);
                 if (current == head)
                 {