Searched hist:96053 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11.0-release/bin/ps/
H A Dfmt.cdiff 96053 Sun May 05 04:42:50 MDT 2002 jmallett Check for possible overflow from sysconf _SC_ARG_MAX and error out in a
correct manner. Revert my incorrect change to use err(3) for malloc(3)
failing. Use a size_t variable to store the size of the argument buffer
we allocate, and remove silly casts as the result of having this around.
Modify the math in some of the paranoid checks for buffer overflow to
account for the fact we now are dealing with the actual size of the
buffer. Remove the static qualifier for arg_max, and the bogus setting
of it to -1.

Include <limits.h> for the definitions we use to check for possible
overflows.

Submitted by: bde

Completed in 89 milliseconds