1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00
serenity/Userland/Libraries/LibDiff
Shannon Booth ee643b6417 LibDiff: Prevent negative underflow calculating suffix and prefix fuzz
In the situation where the amount of content preceeding the hunk was
greater than the max context of the hunk there would be an unsigned
underflow, as the logic was assuming signed arithmitic.

This underflow would result in the patch not applying, as patch would
assume the massive calculated fuzz would result in the patch matching
against any file.
2024-03-03 08:56:00 +01:00
..
Applier.cpp LibDiff: Prevent negative underflow calculating suffix and prefix fuzz 2024-03-03 08:56:00 +01:00
Applier.h Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02:00
CMakeLists.txt LibDiff: Add Diff::apply_patch 2023-07-13 10:29:30 +01:00
Format.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Format.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Forward.h Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02:00
Generator.cpp LibDiff: Fix wrong index used when prepending context lines 2023-09-11 12:10:50 +01:00
Generator.h LibDiff: Add support for generating diffs with surrounding context 2023-07-02 11:18:11 -06:00
Hunks.cpp LibDiff: Handle parsing patches containing timestamps separated by \t 2024-03-03 08:56:00 +01:00
Hunks.h LibDiff+patch: Support multiple patches in a single patch file 2023-07-30 07:47:22 +01:00