The following commit has been merged in the openafs-stable-1_8_x branch:
commit 80be173ac14d02af725c7ee1db9043ae79e6b535
Author: Cheyenne Wills <[email protected]>
Date: Tue May 24 20:14:36 2022 -0600
vol: Use asprintf in _namei_examine_special
GCC-12 is flagging an snprintf statement with a format truncation
warning:
namei_ops.c: In function ‘namei_ListAFSSubDirs’:
namei_ops.c:2029:22: error: ‘%s’ directive output may be truncated
writing up to 255 bytes into a region of size between 0 and 511
[-Werror=format-truncation=]
Change code to use asprintf instead of snprintf. Return an error if a
memory allocation fails.
Reviewed-on: https://gerrit.openafs.org/14955
Tested-by: BuildBot <[email protected]>
Reviewed-by: Benjamin Kaduk <[email protected]>
(cherry picked from commit ae70db6cde5be5abd3bbbb26bd9af6fe68cc4b6b)
Change-Id: I742e0210ac35eec7a143a780db4a6047a0a7c3fc
Reviewed-on: https://gerrit.openafs.org/15056
Tested-by: BuildBot <[email protected]>
Reviewed-by: Andrew Deason <[email protected]>
Reviewed-by: Michael Meffie <[email protected]>
Reviewed-by: Stephan Wiesand <[email protected]>
src/vol/namei_ops.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
--
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs