Module Name: src Committed By: kamil Date: Thu Jul 26 00:05:28 UTC 2018
Modified Files: src/lib/libc/gen: ftok.c Log Message: Avoid undefined behavior in ftok(3) Do not change the signedness bit with a left shift operation. Cast to unsigned integer to prevent this. ftok.c:56:10, left shift of 123456789 by 24 places cannot be represented in type 'int' ftok.c:56:10, left shift of 4160 by 24 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.11 -r1.12 src/lib/libc/gen/ftok.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.