OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-406-g41ee558
Gerrit Code Review
Fri, 26 Jul 2019 10:25:44 -0400
The following commit has been merged in the master branch:
Author: Cheyenne Wills <firstname.lastname@example.org>
Date: Fri Jul 26 07:59:33 2019 -0600
uss: uss_procs.c format-overflow warning
GCC 9 introduced new warnings/errors and is flagging a sprintf with a
format-overflow warning. With --checking-enabled, this error is causing
uss_procs.c to fail during compile.
A file name with the full path is being composed and the size of the
buffer was triggering a possible format-overflow warning/error.
Use asprintf to allocate the buffer dynamically instead of using a
buffer sitting on the stack (reducing the stack requirements by 2K).
Produces new error message if asprintf returns an error.
Reviewed-by: Benjamin Kaduk <email@example.com>
Tested-by: BuildBot <firstname.lastname@example.org>
src/uss/uss_procs.c | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
OpenAFS Master Repository