CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2014/04/23 15:06:33
Modified files:
usr.bin/mandoc : eqn.c mandoc_aux.c mandoc_aux.h mandocdb.c
manpath.c mansearch.c mdoc_argv.c
mdoc_validate.c term.c term_ps.c
Log message:
Audit malloc(3)/calloc(3)/realloc(3) usage.
* Change eight reallocs to reallocarray to be safe from overflows.
* Change one malloc to reallocarray to be safe from overflows.
* Change one calloc to reallocarray, no zeroing needed.
* Change the order of arguments of three callocs (aesthetical).