Page MenuHomeFreeBSD

tftpd: Immediately reject any request shorter than 4 bytes.
ClosedPublic

Authored by des on Apr 25 2024, 5:24 PM.
Tags
None
Referenced Files
F157505177: D44957.id.diff
Fri, May 22, 4:30 AM
Unknown Object (File)
Tue, May 19, 9:05 AM
Unknown Object (File)
Tue, May 19, 4:24 AM
Unknown Object (File)
Tue, May 19, 3:48 AM
Unknown Object (File)
Mon, May 18, 7:12 PM
Unknown Object (File)
Sun, May 17, 11:10 PM
Unknown Object (File)
Sun, May 17, 11:10 PM
Unknown Object (File)
Sun, May 17, 11:09 PM
Subscribers

Details

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.Apr 25 2024, 5:24 PM
This revision is now accepted and ready to land.Apr 25 2024, 5:47 PM

forgot to include include

This revision now requires review to proceed.Apr 25 2024, 5:56 PM
This revision is now accepted and ready to land.Apr 25 2024, 6:00 PM

revert header change and hardcode 4

This revision now requires review to proceed.Apr 25 2024, 6:16 PM
kevans added inline comments.
libexec/tftpd/tftpd.c
231

I'd maybe just toss in a quick /* tftphdr */ to draw the connection and make it seem less arbitrary, but I do not insist

This revision is now accepted and ready to land.Apr 25 2024, 6:33 PM