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 Jan 9 2026, 5:00 PM. Tags None Referenced Files
Subscribers
Details memchr(3) will happily believe we've passed in a valid object, but Sponsored by: Klara, Inc.
Diff Detail
|