Qualys Security Advisory d31f5eb545 ps/output.c: Harden forest_helper().
This patch solves several problems:

1/ Limit the number of characters written (to outbuf) to OUTBUF_SIZE-1
(-1 for the null-terminator).

2/ Always null-terminate outbuf at q.

3/ Move the "rightward" checks *before* the strcpy() calls.

4/ Avoid an integer overflow in these checks (e.g., rightward-4).
2018-05-19 07:32:21 +10:00
..
2012-03-04 08:04:24 +11:00
2014-07-10 21:24:19 +02:00
2018-05-19 07:32:21 +10:00
2002-02-01 22:47:29 +00:00
2014-07-10 21:24:19 +02:00