memchr(3) will happily believe we've passed in a valid object, but
hostsize could easily exceed the bounds of fullhost. Clamp it down to
the string size to be safe and avoid UB.
Sponsored by: Klara, Inc.
Differential D54623
libutil: avoid an out-of-bounds read in trimdomain(3) Authored by kevans on Fri, Jan 9, 5:00 PM. Tags None Referenced Files
Subscribers
Details
Diff Detail
|