Module Name:    src
Committed By:   martin
Date:           Mon Oct  2 17:21:07 UTC 2023

Modified Files:
        src/libexec/ftpd [netbsd-10]: conf.c

Log Message:
Pull up following revision(s) (requested by lukem in ticket #388):

        libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@

To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.64.40.1 src/libexec/ftpd/conf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to