Page MenuHomeFreeBSD

sdiff: Fix binary case.
ClosedPublic

Authored by des on Feb 16 2024, 6:57 PM.
Tags
None
Referenced Files
F170493657: D43942.id134578.diff
Sat, Sep 5, 2:20 AM
F170491430: D43942.id134459.diff
Sat, Sep 5, 2:05 AM
F170479266: D43942.id.diff
Sat, Sep 5, 12:39 AM
Unknown Object (File)
Thu, Sep 3, 8:42 AM
Unknown Object (File)
Thu, Sep 3, 6:08 AM
Unknown Object (File)
Thu, Sep 3, 4:26 AM
Unknown Object (File)
Thu, Sep 3, 1:10 AM
Unknown Object (File)
Wed, Sep 2, 11:38 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56063
Build 52952: arc lint + arc unit

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.