procps/lib
Qualys Security Advisory 50b343e068 0032-proc/sig.c: Fix the strtosig() function.
Do not memleak "copy" in case of an error.

Do not use "sizeof(converted)" in snprintf(), since "converted" is a
"char *" (luckily, 8 >= sizeof(char *)). Also, remove "sizeof(char)"
which is guaranteed to be 1 by the C standard, and replace 8 with 12,
which is enough to hold any stringified int and does not consume more
memory (in both cases, the glibc malloc()ates a minimum-sized chunk).

---------------------------- adapted for newlib branch
. no longer in library, logic  now found in lib/signals.c
. craig already addressed "copy" memleak in commit beloww

Reference(s):
commit d2df396ba9

Signed-off-by: Jim Warner <james.warner@comcast.net>
2018-06-09 21:35:19 +10:00
..
.gitignore A locale-independent strtod 2016-03-10 22:27:09 +11:00
fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
procio.3 procio: fixed grammar in man page plus program comment 2018-05-06 07:19:38 +10:00
procio.c procio: fixed grammar in man page plus program comment 2018-05-06 07:19:38 +10:00
signals.c 0032-proc/sig.c: Fix the strtosig() function. 2018-06-09 21:35:19 +10:00
strutils.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
strverscmp.c Added Cygwin build support 2016-03-12 15:07:30 +11:00
test_fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
test_process.c tests: Conditionally add prctl to test process 2016-04-17 09:11:24 +10:00
test_strtod_nol.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
test_strutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00