Module Name: src Committed By: kamil Date: Wed Jul 25 23:59:08 UTC 2018
Modified Files: src/lib/libc/rpc: xdr_rec.c Log Message: Avoid undefined behavior in the definition of LAST_FRAG in xdr_rec.c Do not change the signedness bit with a left shift operation. Switch to unsigned integer to prevent this in the LAST_FRAG symbol. xdr_rec.c:559:39, left shift of 1 by 31 places cannot be represented in type 'int' xdr_rec.c:572:26, left shift of 1 by 31 places cannot be represented in type 'int' xdr_rec.c:573:25, left shift of 1 by 31 places cannot be represented in type 'int' xdr_rec.c:632:37, left shift of 1 by 31 places cannot be represented in type 'int' xdr_rec.c:711:32, left shift of 1 by 31 places cannot be represented in type 'int' xdr_rec.c:722:28, 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.36 -r1.37 src/lib/libc/rpc/xdr_rec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.