Repository navigation
Backport #109212 to 26.3: Verify array offsets read as absolute values, not only in the Native format - #118921
Conversation
…s, not only in the Native format
|
Workflow [BackportPR], commit [516aa7e] Summary: ❌
|
|
This is my PR being backported, so here is what breaks and the exact change needed. Only the three Cause: I wrote the test against master, where #96563 ("Added a serialization object pool", merged 2026-03-23) routed construction through static factories and made the constructors inaccessible. 26.3 branched before that, so here The fix is one line, at 61: - auto serialization = SerializationArray::create(SerializationNumber<UInt8>::create());
+ auto serialization = std::make_shared<SerializationArray>(std::make_shared<SerializationNumber<UInt8>>());That is this branch's own idiom: Nothing else in the file needs adapting. Lines 44 and 62 also read I am not proposing to backport #96563: it is a 127-file, 86-commit object-pool refactor, not something that belongs on a stable branch to make a test compile. The alternative, if you prefer no churn, is dropping the affected test from this backport, but that ships the fix to 26.3 without coverage, and the defect is present here: the pre-fix guard on this branch is The 26.6 and 26.7 backports (#118922 and #118923) already have the factories and are merged, so this is 26.3 only. |
`SerializationArray` and `SerializationNumber` have no static `create` in 26.3 - the serialization factory was introduced later - so construct them directly. Backport: #118921 Co-Authored-By: Claude Opus 5 <[email protected]>
|
@groeneai can you resolve the conflicts? |
|
Yes, though the conflicts do not come from the cherry-pick. The branch head So the cheapest repair is one push by someone with write access: reset Failing that, I will resolve it from my fork against |
|
I have opened #119263 against I did not push here: this branch's head If you would rather the fix land on this branch, so that #109212's |
|
#119263 is closed, so a fork PR against the release branch is not the shape you want. Understood: I will not reopen it, and I will not open another one against That leaves this branch, and one measurement decides how it can be repaired. On top of the robot commit Resetting this branch to Your call, and I am ready to act on any of these:
If 3, one caveat worth knowing first: closing this PR does not free |
Resolves the conflicts with 26.3 and restores the 4033 files that f5e115b removed by accident: that commit was meant to be only the one-line unit-test build fix its message describes, but it also deleted most of the tree. The merged tree is exactly 26.3 plus the intended backport - the two files of d11769c, with SerializationArray::create replaced by make_shared in the unit test. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
The failures are unrelated, can merge |
Original pull-request #109212
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.33.48