Take buffers from the partition in flatemodule.cpp
Change-Id: I9ac148de4b18604c3ab12b3136b5bb29b46d0445
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/62753
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcodec/flate/flatemodule.cpp b/core/fxcodec/flate/flatemodule.cpp
index 587771e..9663df3 100644
--- a/core/fxcodec/flate/flatemodule.cpp
+++ b/core/fxcodec/flate/flatemodule.cpp
@@ -15,6 +15,7 @@
#include "core/fxcodec/fx_codec.h"
#include "core/fxcodec/scanlinedecoder.h"
#include "core/fxcrt/fx_extension.h"
+#include "core/fxcrt/fx_memory_wrappers.h"
#include "third_party/base/numerics/safe_conversions.h"
#include "third_party/base/ptr_util.h"
#include "third_party/base/span.h"
@@ -671,9 +672,9 @@
int m_Columns = 0;
uint32_t m_PredictPitch = 0;
size_t m_LeftOver = 0;
- std::vector<uint8_t> m_LastLine;
- std::vector<uint8_t> m_PredictBuffer;
- std::vector<uint8_t> m_PredictRaw;
+ std::vector<uint8_t, FxAllocAllocator<uint8_t>> m_LastLine;
+ std::vector<uint8_t, FxAllocAllocator<uint8_t>> m_PredictBuffer;
+ std::vector<uint8_t, FxAllocAllocator<uint8_t>> m_PredictRaw;
};
FlatePredictorScanlineDecoder::FlatePredictorScanlineDecoder(