Page MenuHomeFreeBSD

libfetch: Reject control characters in credentials
ClosedPublic

Authored by des on Fri, Sep 25, 10:37 AM.
Tags
None
Referenced Files
F174295047: D60008.id187651.diff
Fri, Oct 2, 3:21 AM
F174270115: D60008.id.diff
Thu, Oct 1, 9:46 PM
F174228507: D60008.diff
Thu, Oct 1, 1:13 PM
Unknown Object (File)
Thu, Oct 1, 2:01 AM
Unknown Object (File)
Thu, Oct 1, 1:45 AM
Unknown Object (File)
Wed, Sep 30, 2:35 PM
Unknown Object (File)
Wed, Sep 30, 1:41 PM
Unknown Object (File)
Wed, Sep 30, 6:15 AM
Subscribers

Details

Summary

If a URL contains credentials, check that neither the user name nor the
password contain control characters.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77531
Build 74414: arc lint + arc unit

Event Timeline

des requested review of this revision.Fri, Sep 25, 10:37 AM
lib/libfetch/fetch.c
389

Shouldn't this be iscntrl()? isprint() will reject characters above 0x7f too, I'm not sure if that's desirable here.

use iscntrl() instead of !isprint()

des marked an inline comment as done.Wed, Sep 30, 4:36 PM

The commit log message should explain why.

This revision is now accepted and ready to land.Wed, Sep 30, 4:39 PM