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

astc: Increase integer encoded vector size

Invalid ASTC textures seem to write more bytes here, increase
the size to something that can't make us push out of bounds.
ReinUsesLisp 5 лет назад
Родитель
Сommit
22be115eb2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video_core/textures/astc.cpp

+ 1 - 1
src/video_core/textures/astc.cpp

@@ -197,7 +197,7 @@ struct IntegerEncodedValue {
     };
 };
 using IntegerEncodedVector = boost::container::static_vector<
-    IntegerEncodedValue, 64,
+    IntegerEncodedValue, 256,
     boost::container::static_vector_options<
         boost::container::inplace_alignment<alignof(IntegerEncodedValue)>,
         boost::container::throw_on_overflow<false>>::type>;