Skip to content

Sync S19: merge upstream PDFium up to bd217de841 (Nov 23 2026) - #131

Merged
bobsingor merged 35 commits into
embedpdf/mainfrom
embedpdf/sync/bd217de841
Nov 24, 2026
Merged

bobsingor merged 35 commits into
embedpdf/mainfrom
embedpdf/sync/bd217de841

Conversation

@bobsingor

Copy link
Copy Markdown
Contributor

Release-gate sync: 34 upstream commits, 1f02bc7 to bd217de (the newest upstream commit at least a day old). Report: docs/embedpdf/syncs/2026-11-24-bd217de841.md.

  • FreeType 2.14.3-146 to 2.15.0-10: overflow and bounds fixes; no new golden differences.
  • Text page: FindTextlineFlowOrientation() checks page size and line height before casting to int (721a620a0a, flagged as a likely security fix).
  • Upstream's new CPDF_Document::DestructionNotifier must be the first data member, so our measure_storage_ now sits right after it (0fb188cc6c).
  • Upstream removed EmbedderTest::HashBitmap() (afcec981f6); our 42 uses keep working with a copy in fpdfsdk/epdf_edit_test_util.{h,cpp}.
  • Upstream moved some embedder tests to a new runner, run_drawing_tests.py (2bc1255c48, aff95024b4), which our CI does not run. Run by hand: 5 of 7 pass; the other two differ only in font (the fork draws the standard fonts with its built-in faces). Running it in CI is proposed in the report.
  • Conflicts (4): the document class, one test file and fpdf_deleters.h; resolved by keeping both sides.
  • Layer-mode writers: none new, no count changes.
  • No C API change.

Local checks (darwin-arm64): 1412 unit tests pass; embedder tests unchanged (the 12 known Mac golden failures); layer mode; tag, C API, globals and exports checks; every target's patches; wasm32 build. Not run locally: Linux and Windows builds, TSan soak, engine tests.

Missing after this sync: three upstream commits, the oldest ae33e57aff (Nov 23 23:33 UTC), so a release must start before Nov 25 23:33 UTC.

If you run CI on this branch, let it finish before merging: merging deletes the branch, and build jobs that start afterwards fail at checkout. Merge with a merge commit, not squash.

pdfium-autoroll@skia-public.iam.gserviceaccount.com and others added 30 commits November 15, 2026 20:29
If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/goldctl-pdfium
Please CC thestig@chromium.org,thestig@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in goldctl: https://issues.skia.org
To file a bug in PDFium: https://crbug.com/pdfium

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Change-Id: I27319624c740a71440c9ee4e724bed3d884f532d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164610
Bot-Commit: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
…sions)

https://chromium.googlesource.com/chromium/third_party/instrumented_libraries.git/+log/83128b60913a..490c778c3a20

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/instrumented-libraries-pdfium
Please CC dhoss@chromium.org,thestig@chromium.org,thestig@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Change-Id: I1fc265463b1e5c51a6cbfb7f56f47caba8c39228
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164630
Bot-Commit: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
Move the JPX decoding logic out of pdf_jpx_fuzzer.cc into a new
pdf_jpx_fuzzer_common source set, so it can be shared with an upcoming
FuzzTest version of the fuzzer. pdf_jpx_fuzzer.cc now only parses the
decoder parameters from the fuzzer input and calls
DecodeJpxForFuzzing().

No functional change intended.

Bug: 581810614
Change-Id: I574d19eb0c685f541b2291df1287facb7b9f30e0
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164230
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
https://chromium.googlesource.com/chromium/src/third_party/freetype2.git/+log/25167984d243..d5d4bef0c6d5

Created with:
  roll-dep third_party/freetype/src

Also roll DEPS for testing/corpus to pick up the corresponding test
expectation change in https://pdfium-review.googlesource.com/c/164510.

Change-Id: If474dd60dab87178af4e2393252b5351f76f13d2
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164490
Reviewed-by: Andy Phan <andyphan@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
https://chromium.googlesource.com/chromium/src/third_party/freetype2.git/+log/d5d4bef0c6d5..a5877f48fff8

Created with:
  roll-dep third_party/freetype/src

Change-Id: I519a7fe59de82a90a04eae158153c4162c221dcf
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164590
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
Defensive coding based upon patterns in previous reports.

Hold stack-local node collections in CJX_Object::SetContent() and
CXFA_Node::InsertItem() using cppgc::Persistent<GCedVector<CXFA_Node>>
instead of unrooted std::vector<CXFA_Node*>.

These code paths allocate new nodes via CreateSamePacketNode(), which
triggers cppgc heap allocation. Rooting the collections protects them
against premature garbage collection during allocation-triggered sweeps.

Change-Id: I9a338f886ea50cae78f2610bb890f3fd24542e3b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164451
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Hold candidate collections in CFXJSE_Engine::ResolveResult using
std::vector<cppgc::Persistent<CXFA_Object>> instead of untraced
std::vector<cppgc::Member<CXFA_Object>>.

Holding candidates in Persistent handles ensures they remain rooted
across arbitrary re-entrant script execution without allocating
ephemeral garbage on the Oilpan heap.

Add an overload for CXFA_Document::GetNotBindNode() to accept spans of
Persistent CXFA_Object pointers alongside Member CXFA_Object pointers.

Fixed: 575092452, 575095388
Change-Id: I653f5bd776db68893c8deb3616e671ffaee14e13
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164650
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Replace the external Python subprocess invocation of text_diff.py in
TestText() with Python's standard library difflib.unified_diff directly
in-process.

In addition, extract _GetFontArgs() and _GetCommonFeatureArgs() on
_TestCaseRunner to share font directory and feature argument
construction across TestText() and TestPixel().

Change-Id: I2e7cb3ea9168c1f8bd0553c9de31aba5eec60a39
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164730
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Exercise every source-alpha and clip-alpha pair with destination
alpha values 0, 1, 127, 128, 254, and 255. This checks the two
successive truncating divisions by 255 and their largest products,
in addition to exposing the clipped alpha with a zero destination.

Add row widths 8, 9, 15, 16, 31, and 32 to the constant-alpha and
tail tests to cover more vector boundaries.

These cases verify existing behavior and pass independently of
changes to the SIMD implementation.

Test: Compositor tests with SSE2, SSSE3, SSE4, AVX2, and SCALAR.
Change-Id: Ibcf7260bfd6a64b58c6f4f1e42cf04e15a9fcf76
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164570
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
The current 32-bit lane kernel emulates multiplication on SSE2 and SSSE3
and processes only four pixels per iteration on 128-bit targets. On
short clipped rows with mostly transparent pixels, the full vector
calculation can also cost more than the scalar fast paths.

Use 16-bit arithmetic for all SIMD mask kernels. Each vector processes
twice as many pixels: eight on SSE targets and sixteen on AVX2. This
uses native multiplication and exact high-half multiplication for
division by 255. For products in [0, 65025], ((x + 1) * 257) >> 16 gives
floor(x / 255), with no overflow in x + 1. Preserve the separate
truncations for clipping and alpha union, producing bit-identical
results.

Expanded test coverage is submitted separately in CL 164570:
https://pdfium-review.googlesource.com/c/pdfium/+/164570

Benchmark on Ryzen 7 9800X3D, Windows x64, clang-cl Release, with each
target forced and pinned to the same logical CPU. Report medians of
seven samples across 468 SIMD scenarios per target: 39 widths >= 128,
with/without clip, and six alpha distributions. Timings include
destination reset and dispatch.

Compared with the current 32-bit SIMD implementation, AVX2 has a median
speedup of 1.261x. All 468 AVX2 scenarios improve, with speedups ranging
from 1.094x to 2.023x. For a 2048-pixel mixed-alpha row with clipping,
time decreases from 332.847 ns to 165.054 ns (2.017x).

Compared with the original pre-SIMD scalar implementation, all 468
scenarios are faster on each x86 target. Minimum speedups are 1.438x for
SSE2, 1.442x for SSSE3, 1.348x for SSE4, and 1.548x for AVX2.

Highway has no separate SSE3 target; CPUs supporting SSE3 but not SSSE3
use the SSE2 path.

Validation:
- Compositor tests pass on SSE2, SSSE3, SSE4, AVX2, and SCALAR.
- All 256^3 source/destination/clip alpha combinations pass on each of
  the four x86 targets; 528 guard-page cases pass.
- ARM64 Windows compilation of the production source passes.
- AVX2 pixel/corpus output matches the current 32-bit SIMD
  implementation for all 1,344 PNGs, with no new failures in the full
  test suites.

Change-Id: I9866e7cca0da80cdd0a2c66a78adf2d35963899c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164370
Commit-Queue: Andy Phan <andyphan@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
Add run_drawing_tests.py to execute drawing comparison tests in parallel
using test_runner.py.

Drawing tests render PDF pages to DisplayListDeviceDriver using
`pdfium_test --dump`, producing structured text representations of
vector drawing commands (.dump.txt) for each page. These are compared
against golden expectations via text diffing, avoiding binary PNG
artifacts and cross-platform rasterization discrepancies.

Add an initial test under testing/resources/drawing/hello_world.in with
its corresponding golden expectation, along with an xfa_specific
sub-directory to support XFA tests that automatically skip on non-XFA
builds.

Change-Id: Ib8f09d4a1105913d0ca2692633dfab5896dfe78a
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164710
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Move embedder tests that only open a document and compare its rendered
display list over to the drawing test suite in
testing/resources/drawing.

Migrate:
- bug_552046: Move .in to drawing/, remove .pdf.
- bug_555784: Move .in to drawing/, remove .pdf, move expectation.
- bug_455199: Move .pdf to drawing/, add expectation.
- Remove fpdf_parser_decode_embeddertest.cpp now that all its tests have
  moved.
- bug_547706: Copy .in to drawing/, move expectation, and remove
  LoadError547706 from fpdf_render_pattern_embeddertest.cpp. Retain
  bug_547706.pdf for fpdf_transformpage_embeddertest.
- annotation_highlight_rollover_ap: Copy .in to drawing/, move
  expectation, and remove RenderAnnotWithOnlyRolloverAP from
  fpdf_annot_embeddertest.cpp. Retain .pdf for ModifyAnnotationFlags.
- rectangles: Copy .in to drawing/, add expectation, and remove
  RenderPageToDisplayList from fpdf_view_embeddertest.cpp. Retain
  rectangles.pdf and expectation for other embedder tests.

Change-Id: I55b8c41b9a8426b210d8909d0bb28998d5be730c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164750
SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Out-of-schedule roll to allow pdfium to build with fontations when part
of a chrome checkout.

https://chromium.googlesource.com/chromium/src/third_party/rust/+log/79a8603b966b..7661f9bcc77d

Created with:
  roll-dep third_party/rust

Then update PDFium for skrifa/v0_49:
- bump hard-coded read_fonts versions (v0_45 to v0_46)
- bump hard-coded skrifa versions (v0_48 to v0_49)
- Replace skrifa_cxx_config include_dirs with relative paths.
- Updated read_fonts::ps imports to to match API changes.
- Remove redundant cast.
- Visually-indistinguishable MSE bump for 3bigpreview.pdf
- Expand pdfium_common_config to cover generated files.
- Replace skrifa_cxx_config with updated pdfium_common_config
- Use properly based path in main.rs.

Change-Id: I8d5e32df8f0b0132d00b0548d5e23fe9bb49e816
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164870
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
CFDE_TextOut::DrawLogicText() performs logical text breaking and piece
layout rather than pixel rasterization. Use DisplayListDeviceDriver and
compare the emitted display lists directly, removing all renderer- and
font-backend-specific checksums.

Without MD5 hashing, xfa/fde:unittests no longer depends on core/fdrm,
so drop that dependency as well.

Change-Id: I2fbd152cb7fa8717b465f93fcf253116ae2383de
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164910
Reviewed-by: Lei Zhang <thestig@chromium.org>
CFX_Barcode::RenderDevice() emits logical path and rectangle geometry
into CFX_RenderDevice, so compare the emitted display lists directly,
and remove all renderer-specific MD5 checksums.

Change-Id: I9cfa04e6717c9005e43a508f5c5c4a0583c356fb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164950
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Move global object unbinding for contexts from ~CFXJSE_Engine() into
~CFXJSE_Context() so any context destroyed before engine teardown
clears its global object's host-object pointer before dropping
`this_proxy_`.

In addition:
- Suppress microtask execution during EnableCompatibleMode() so
  bootstrap script execution does not drain pending microtasks while a
  context is still being initialized.
- Return std::unique_ptr<CFXJSE_Context> from CreateVariablesContext()
  and use try_emplace() in RunVariablesScript() so re-entrant script
  resolution does not overwrite an existing map entry.
- Check for a null result from ToObject() in GlobalPropertyGetter() and
  GlobalPropertySetter() to handle unbound global objects safely.
- Require FXJSE_ClassPropType::kProperty in DynPropSetterAdapter() so
  properties returning kNone do not invoke dynPropSetter.

Fixed: 587005930
Change-Id: I0615a8c26d468e436122cc9bee6209335af5ddf4
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164951
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Out-of-cycle roll to keep PDFium in-sync with Chromium.

https://chromium.googlesource.com/chromium/src/third_party/rust/+log/7661f9bcc77d..aee3445062d8

Created with:
  roll-dep third_party/rust

-- Manually adjust directory versions in GN files.

Change-Id: I606ab7c1005713fd6ab1d9c4cb6368f5648b2e03
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164890
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
`CPDF_TextPage::FindTextlineFlowOrientation()` casts page width, page
height, and `2 * fLineHeight` directly from float to `int32_t`. Pages
with extreme MediaBox dimensions or text objects with extreme vertical
scale can exceed `int32_t` bounds and trigger UBSan float-cast-overflow.

Validate page width and height with
`pdfium::IsValueInRangeForNumericType<int32_t>()` before casting,
returning `TextOrientation::kUnknown` when out of range so text
extraction proceeds. Checking range rather than saturating also ensures
promoting `nPageWidth` and `nPageHeight` back to float in `std::clamp()`
stays within `int32_t` bounds (at most 2147483520.0f).

Use `pdfium::saturated_cast<int32_t>()` for `nDoubleLineHeight` so
overflowing line heights saturate to `INT32_MAX` instead of invoking
undefined behavior.

Add embedder tests covering overflowing text line heights and page
dimensions.

PiperOrigin-RevId: 1025695828
Change-Id: Idb53d9b091a31fb31909551eb382ae6e9a13dc98
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165050
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libc.git/+log/d8f2045008e2..7840ec9fbb6b

Created with:
  roll-dep third_party/llvm-libc/src

Change-Id: Ia275820c21256ae86f79df642c78f496e9a1aa99
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165070
Reviewed-by: Andy Phan <andyphan@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
https://chromium.googlesource.com/chromium/src/third_party/freetype2.git/+log/a5877f48fff8..2b01fa2d6723

Then remove `TT_CONFIG_OPTION_NO_BORING_EXPANSION` from ftoption.h,
since FreeType removed this upstream. Same as crrev.com/1746067.

Created with:
  roll-dep third_party/freetype/src

Change-Id: I81b4c12fa49f371f8b125af629cb0a0bdc10c89c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165090
Reviewed-by: Andy Phan <andyphan@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
Auto-Submit: Lei Zhang <thestig@chromium.org>
https://chromium.googlesource.com/v8/v8.git/+log/bb54fc4e853a..b5156d2a71b5

Version 15.9.100

Created with:
  roll-dep v8

Change-Id: I46e8a449cd645bae3c84810b3dcd7bb080e1c675
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165071
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
CFFL_ComboBox::OnChar() and CFFL_ListBox::OnChar() have implementations
that just call CFFL_TextObject::OnChar(), which is unnecessary. Delete
them.

Change-Id: Ib1fdd7dddd62c038c6c73249130946e3670cba80
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165150
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Move skrifa/src/outlines.h out of :skrifa_cxx_cpp into a header-only
source_set (:skrifa_cxx_outlines_h) with public_deps on
//build/rust:cxx_cppdeps, and add it to public_deps of :skrifa_cxx
so rust_target.gni forwards it to :skrifa_cxx_cxx_generated.

Fixed: 588163918
Change-Id: I2ee34dff2debd7cf8ff324dff832b324c84fbf60
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165210
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Also use it in the only two places it is applicable in PDFium.

Change-Id: I5d08b4b75dddb480f0311366feedb41674d4797d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165270
Auto-Submit: April Kallmeyer <ask@chromium.org>
Commit-Queue: April Kallmeyer <ask@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
The deferred SkiaState batching and clip-caching layer that this test
verified no longer exists in CFX_SkiaDeviceDriver, which now forwards
drawing and state calls directly to SkCanvas. Relying on an aliased
.notdef glyph from a substituted ShiftJIS font hitting pixel (0, 0)
also made the test sensitive to font-backend rasterization differences
under Fontations.

-- Turn off other features no longer required by tests.

Change-Id: I1d9fc9a8fcbd0fc9994faf7ff60986b68a13937c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164911
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Nothing in Rust calls skrifa::run; only FxSkrifaTest.TestFoxitFixedCff
calls it from C++. Move the assertions into fx_skrifa_unittest.cpp using
GTest macros, remove the extern "C++" block and unused main() from
main.rs, and delete outlines.h, outlines.cpp, and the :skrifa_cxx_cpp
and :skrifa_cxx_outlines_h GN targets.

Follow-on CL from https://pdfium-review.googlesource.com/165210 for
easy rollback to that safe CL if needed.

-- Improve test assertions.

Change-Id: Ia971602c25d4f38a742b443fab4b060569f1b232
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165230
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
CPDF_DataAvail was the only non-ObservedPtr class implementing
Observable::ObserverIface. Add CPDF_Document::DestructionObserverIface
with OnObservableDestroyed() and migrate CPDF_DataAvail to use it.

This is a prequel to devirtualizing ObservedPtr<T>.

Change-Id: I79c103f9a01117ad846db656d3917b6a5f69e04c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165231
Reviewed-by: Andy Phan <andyphan@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Now that ObservedPtr is the sole consumer of Observable notifications,
replace Observable::ObserverIface with a non-virtual ObservedPtrBase.
ObservedPtr<T> shrinks by one vptr and Observable::NotifyObservers()
zeros out observable_ directly without virtual dispatch.

Change-Id: Id5be3c44faef3b8c1d2d020594b37edc02a24984
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165232
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
All remaining callers of EmbedderTest::HashBitmap() only compare two
in-memory bitmaps against each other rather than against hardcoded MD5
strings.

Replace HashBitmap() with BitmapsEqual() in EmbedderTest to compare
bitmap dimensions, formats, and row pixel data directly, and drop the
core/fdrm dependency from testing:embedder_test_support.

Change-Id: I852564da09f4664bc27a5ffb1c65eb8517e2664c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165191
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
Set in_active_ffi_callback_ across the remaining IPDF_JSPLATFORM
call-outs in CPDFSDK_FormFillEnvironment: JS_fieldBrowse(),
JS_docmailForm(), JS_docprint(), JS_docgotoPage(), GetFilePath(), and
SubmitForm(). Also route CPDFXFA_DocEnvironment::Print() through
CPDFSDK_FormFillEnvironment::JS_docprint() so XFA printing shares the
same guard.

Defense-in-depth for embedders; none of these call-out paths should be
reachable for synchronous environment destruction from the Chromium
embedder.

Fixed: 586732845
Change-Id: I15e99ecf1ee6cf64a993e40bf0a306341f55a528
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165290
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
pdfium-autoroll@skia-public.iam.gserviceaccount.com and others added 5 commits November 22, 2026 20:27
https://chromium.googlesource.com/chromium/src/tools/code_coverage.git/+log/084f00efb99d..ed426db3b2fb

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/code-coverage-pdfium
Please CC dhoss@chromium.org,thestig@chromium.org,thestig@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Bug: None
Change-Id: Ib2d4f09fd5ef8bdf0aa470f101154f68f590014c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165350
Bot-Commit: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: pdfium-autoroll@skia-public.iam.gserviceaccount.com <pdfium-autoroll@skia-public.iam.gserviceaccount.com>
Add core/fxge/dib/cfx_dibitmap_hwy.{h,cpp} exposing MultiplyAlphaSimd()
and MultiplyAlphaMaskSimd(), and call them from the kBgra per-row loops
in cfx_dibitmap.cpp.

This CL is partly AI-generated.

Bug: 581458360
Change-Id: I49d0d9afb9da5618b5a25e78487515b46c477f04
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164330
Reviewed-by: Andy Phan <andyphan@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
These now match PDF_USE_AGG and PDF_USE_SKIA. Embedders depending on
//third_party/pdfium can then inspect these preprocessor defines.

Change-Id: I3afdd8fac3f62a93c08358b6ebce1cd4ffa63332
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165390
Reviewed-by: Andy Phan <andyphan@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Drop cflags_cc = [], ldflags = [], and defines = [] in configs and
source_sets that never append to them.

Change-Id: Ib9d4c21648f29de9f3658d7d602c88779d6ec925
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/165410
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Andy Phan <andyphan@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Release-gate sync: 34 upstream commits, 1f02bc7 to bd217de (the
newest upstream commit at least a day old).
Report: docs/embedpdf/syncs/2026-11-24-bd217de841.md.

- FreeType is now 2.15.0.
- The text page checks page size and line height before casting to int.
- CPDF_DataAvail watches a document through upstream's new
  DestructionNotifier; our members keep their order after it.
- Upstream removed EmbedderTest::HashBitmap(); our tests use a copy in
  epdf_edit_test_util.
- Upstream moved some embedder tests to a drawing-test runner our CI
  does not run; noted in the report.
@bobsingor
bobsingor merged commit 1e1342d into embedpdf/main Nov 24, 2026
1 check passed
@bobsingor
bobsingor deleted the embedpdf/sync/bd217de841 branch November 24, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants