mirror of
https://github.com/opnsense/src.git
synced 2026-02-27 11:50:47 -05:00
fgetln() returns a pointer to an array of characters that is 'len'
characters long, not 'len + 1'. While here, overwriting the contents
of the buffer returned by fgetln isn't really safe, so switch to using
getline() instead.
Note that these fixes are a subset of those applied to a
near-identical copy of this function in libc's resolv_test.c in commit
|
||
|---|---|---|
| .. | ||
| dlopen | ||
| d_mach | ||
| h_atexit.c | ||
| h_cancel.c | ||
| h_common.h | ||
| h_exit.c | ||
| h_resolv.c | ||
| t_atexit.sh | ||
| t_barrier.c | ||
| t_cancel.sh | ||
| t_cond.c | ||
| t_condwait.c | ||
| t_detach.c | ||
| t_equal.c | ||
| t_exit.sh | ||
| t_fork.c | ||
| t_fpu.c | ||
| t_join.c | ||
| t_kill.c | ||
| t_mutex.c | ||
| t_name.c | ||
| t_once.c | ||
| t_preempt.c | ||
| t_resolv.sh | ||
| t_rwlock.c | ||
| t_sem.c | ||
| t_sigalarm.c | ||
| t_siglongjmp.c | ||
| t_sigmask.c | ||
| t_sigsuspend.c | ||
| t_sleep.c | ||
| t_swapcontext.c | ||
| t_timedmutex.c | ||