fix: refuse fixed p-register hooks on static methods and harden small spots in the patches #120
No reviewers
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches!120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "review/85-hook-robustness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #105, fixes #85 and the non-Videoland points of #100.
parameterRegister(method, index, type, ...)derives a parameter'spNfrom the signature (static or not) and checks its type;requireInstanceMethod(...)throws when a hook usesp0asthison a static method. Used at every fixed-pNhook in Edition, Kubus, Videoland Hide ads and the DPG video SDK. Edition Hide ads' "p1 is the Context" comment corrected.addShareActionreturningV;isReleaseBuildmatched byFieldReference.name; MiniJson: BOM as, lone-rejected, bad\uescape -> PatchException,MiniJsonTest; Firebase patch KDoc; Kubusgelderlander*vals renamed tokubus*, mergeddependsOn,featureFlagOverridePatchgetscompatibleWith, redundanttoList()removed, no obfuscated names in comments.Verified:
buildAndroidincl. contract check and MiniJsonTest;list-patches --with-packages --with-versionsidentical to origin/dev; Applied identical to origin/dev on de Volkskrant 7.53.1 (13), Trouw 7.52.0 (13), Tubantia 9.22.0, De Gelderlander 9.21.1 and AD 9.21.1 (15 each). No device test.🤖 Generated with Claude Code
Merged into dev as
bf097f9(merged locally together with other review PRs, so Forgejo didn't mark it merged).Pull request closed