Searched hist:a23c26b2fe38f7ad63e71e1f32795b4800213585 (Results 1 – 1 of 1) sorted by relevance
/freebsd/stand/libsa/ |
H A D | bootp.c | diff a23c26b2fe38f7ad63e71e1f32795b4800213585 Wed Aug 03 18:50:14 CEST 2022 Warner Losh <imp@FreeBSD.org> stand: use snprintf here
This code was written prior to snprintf being in the then libstand (now libsa). Since we have it, use it for extra safety. The code already tries to be safe, but since we have snprintf as well, the added layer of protection will suffice. The current code reserves 16 bytes (plus a NUL) at the end for worst case of inet_ntoa, which is still a little pessimal, but safe from overflow.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35102
|