mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibRegex: Use the right offset when patching jumps through fork-trees
Fixes #4474.
This commit is contained in:
parent
8a398e7a88
commit
022cd1adca
Notes:
github-actions[bot]
2025-04-27 10:17:08 +00:00
Author: https://github.com/alimpfard
Commit: 022cd1adca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4479
2 changed files with 3 additions and 1 deletions
|
@ -1560,7 +1560,7 @@ void Optimizer::append_alternation(ByteCode& target, Span<ByteCode> alternatives
|
|||
target.append(static_cast<ByteCodeValueType>(OpCodeId::ForkJump));
|
||||
patch_location = target.size();
|
||||
should_negate = false;
|
||||
patch_size = 2;
|
||||
patch_size = 1;
|
||||
target.append(static_cast<ByteCodeValueType>(0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue