Page MenuHomeFreeBSD

sdiff: Fix binary case.
ClosedPublic

Authored by des on Feb 16 2024, 6:57 PM.
Tags
None
Referenced Files
F168790047: D43942.id.diff
Sun, Aug 30, 4:17 AM
F168764329: D43942.diff
Sun, Aug 30, 1:06 AM
F168762502: D43942.id134459.diff
Sun, Aug 30, 12:55 AM
Unknown Object (File)
Thu, Aug 27, 5:17 PM
Unknown Object (File)
Tue, Aug 25, 7:56 PM
Unknown Object (File)
Tue, Aug 25, 3:41 PM
Unknown Object (File)
Tue, Aug 25, 9:58 AM
Unknown Object (File)
Tue, Aug 25, 9:48 AM
Subscribers

Details

Reviewers
markj
Group Reviewers
Klara
Commits
rGad7bef8b8907: sdiff: Fix binary case.
Summary

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Feb 16 2024, 6:57 PM

Could you please explain the underlying problem that's fixed here?

Could you please explain the underlying problem that's fixed here?

if tmp1 != NULL then filename1 == tmp1, likewise for tmp2 and filename2, so we're deleting the file, then freeing the filename, then passing the freed name of a deleted file to diff and expecting that to work.

This revision is now accepted and ready to land.Feb 18 2024, 4:35 PM
This revision was automatically updated to reflect the committed changes.