Page MenuHomeFreeBSD

inetd: use snprintf() in inetd_setproctitle()
Needs ReviewPublic

Authored by ojanerif_amd.com on Tue, Oct 20, 2:03 AM.

Details

Reviewers
markj
Summary

inetd_setproctitle() formats se_service (the service name taken verbatim
from inetd.conf) and the peer address into an 80-byte buffer with
sprintf(). A long service name can overflow it. Bound both calls with
snprintf(). Build-tested; no functional change.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped