| commit | 3e8d18425bd247579dd6984ff09c9a0c7ab94535 | [log] [tgz] |
|---|---|---|
| author | Lei Zhang <thestig@chromium.org> | Tue May 06 10:17:39 2025 -0700 |
| committer | Pdfium LUCI CQ <pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 06 10:17:39 2025 -0700 |
| tree | 36461b89b526284b1b71d116adc7b34d6ef60882 | |
| parent | 1ece8a1b7c3e704b621ddea2da05fa03f79b8761 [diff] |
Fix GCC build issue in fxcodec.DecodeDataZeroSize test (try 2) https://pdfium-review.googlesource.com/131330 didn't actually work. Change-Id: Id4900b304966e6fdfab46a510f4c7c92d2e1a9dd Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/131750 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcodec/jpx/jpx_unittest.cpp b/core/fxcodec/jpx/jpx_unittest.cpp index d84a2c2..f54528a 100644 --- a/core/fxcodec/jpx/jpx_unittest.cpp +++ b/core/fxcodec/jpx/jpx_unittest.cpp
@@ -71,7 +71,8 @@ } TEST(fxcodec, DecodeDataZeroSize) { - DecodeData dd(pdfium::span(kStreamData).first(0u)); + static constexpr pdfium::span<const uint8_t> kEmptySpan; + DecodeData dd(kEmptySpan); uint8_t buffer[16]; // Reads of size 0 do nothing but return an error code.