Module Name: src Committed By: rillig Date: Fri Feb 16 19:20:38 UTC 2024
Modified Files: src/common/lib/libutil: snprintb.c src/tests/lib/libutil: t_snprintb.c Log Message: snprintb: fix integer overflow when writing past a small buffer Previously, snprintb returned -1 in this case, assuming that the snprintf used in FMTSTR validates against an overly large buffer size. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/common/lib/libutil/snprintb.c cvs rdiff -u -r1.18 -r1.19 src/tests/lib/libutil/t_snprintb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.