serenity/Userland/Libraries/LibDiff
Shannon Booth b738929195 LibDiff: Fix wrong index used when prepending context lines
`i` is used as the index for 'old lines' in diff generation, not 'new
lines'. Using the wrong index would mean that for certain diffs the
prefixed context information would have wrong content, and could even
result in a crash.

Fix this, and add a test for an input which was previously crashing.
2023-09-11 12:10:50 +01:00
..
Applier.cpp Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02: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: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02:00
Format.h Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2023-07-15 16:21:29 +02:00
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+patch: Support multiple patches in a single patch file 2023-07-30 07:47:22 +01:00
Hunks.h LibDiff+patch: Support multiple patches in a single patch file 2023-07-30 07:47:22 +01:00