You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments