mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 12:11:48 -04:00
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. This plugs a potential overread noted in the compat shim that was just added. Reviewed by: des Sponsored by: Klara, Inc. (cherry picked from commit f268f95955f5f0f91f4d39e13bcd69a24e0d8ce4) |
||
|---|---|---|
| .. | ||
| cpuset_test.c | ||
| expand_number_test.c | ||
| flopen_test.c | ||
| forkpty_test.c | ||
| grp_test.c | ||
| humanize_number_test.c | ||
| Makefile | ||
| Makefile.depend | ||
| pidfile_test.c | ||
| trimdomain-nodomain_test.c | ||
| trimdomain_test.c | ||