Page MenuHomeFreeBSD

md5: Fix GNU check mode.
ClosedPublic

Authored by des on Feb 20 2024, 5:30 PM.
Tags
None
Referenced Files
F102114791: D43990.diff
Thu, Nov 7, 7:24 PM
Unknown Object (File)
Wed, Nov 6, 4:22 AM
Unknown Object (File)
Tue, Nov 5, 4:04 AM
Unknown Object (File)
Thu, Oct 31, 1:49 PM
Unknown Object (File)
Mon, Oct 21, 12:08 AM
Unknown Object (File)
Mon, Oct 21, 12:07 AM
Unknown Object (File)
Mon, Oct 21, 12:07 AM
Unknown Object (File)
Sun, Oct 20, 3:18 PM

Details

Summary

Fixes: 9b20849bc5f1b500f2de7aeca77f0e6556069bbb
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 20 2024, 5:30 PM

I'd explain a little bit more what was broken. Looks like maybe it was checking for a verbatim match before peeling off the special character, but I'm not sure.

This revision is now accepted and ready to land.Feb 20 2024, 5:50 PM
markj added inline comments.
sbin/md5/md5.c
374

Should this be rec->input_mode = input_mode?

620

Not necessary for this diff, but IMO it'd be better to pass these as parameters to MDInput() and MDOutput() rather than switching the global value like this.

des marked 2 inline comments as done.

like markj said

This revision now requires review to proceed.Feb 20 2024, 6:12 PM
sbin/md5/md5.c
374

I guess that makes more sense.

620

I'm just fixing what's broken...

This revision is now accepted and ready to land.Feb 20 2024, 6:14 PM
In D43990#1003525, @imp wrote:

I'd explain a little bit more what was broken. Looks like maybe it was checking for a verbatim match before peeling off the special character, but I'm not sure.

It was discarding the input mode.

This revision was automatically updated to reflect the committed changes.

The manpage states:

Note that this implementation does not differentiate between binary and text mode.

The manpage states:

Note that this implementation does not differentiate between binary and text mode.

Correct. It still differentiates between binary / text, universal, and bits.