Commit 2469593
diff: allow passing NULL to diff_free_filespec_data()
Commit 3aef54e ("diff: munmap() file contents before running external
diff") introduced calls to diff_free_filespec_data in
run_external_diff, which may pass NULL pointers.
Fix this and prevent any such bugs in the future by making
`diff_free_filespec_data(NULL)` a no-op.
Fixes: 3aef54e ("diff: munmap() file contents before running external diff")
Signed-off-by: Jinoh Kang <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 898f807 commit 2469593
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4111 | 4111 | | |
4112 | 4112 | | |
4113 | 4113 | | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
4114 | 4117 | | |
4115 | 4118 | | |
4116 | 4119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
731 | 754 | | |
732 | 755 | | |
733 | 756 | | |
| |||
0 commit comments