Module Name: src
Committed By: kamil
Date: Thu Jul 26 00:33:26 UTC 2018
Modified Files:
src/common/lib/libutil: snprintb.c
Log Message:
Avoid undefined behavior in snprintb.c
Do not change the signedness bit with a left shift operation.
Switch to unsigned integer to prevent this.
snprintb.c:178:17, left shift of 1 by 31 places cannot be represented in type
'int'
Detected with micro-UBSan in the user mode.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/common/lib/libutil/snprintb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.