ftok: avoid left shift of a signed in by 24 places
authormillert <millert@openbsd.org>
Wed, 13 Apr 2022 16:23:53 +0000 (16:23 +0000)
committermillert <millert@openbsd.org>
Wed, 13 Apr 2022 16:23:53 +0000 (16:23 +0000)
commit33a09bee3ffed2ecb0af3ed6458fb773695c6eb7
tree98db003a101085eb455dda912abe0e8406908f08
parentba6566ba78ec5d146deb99b3117f6e7332769e20
ftok: avoid left shift of a signed in by 24 places
Fix "left shift of 255 by 24 places cannot be represented in type 'int'"
error from UBSAN.  Adapted from a FreeBSD diff via tb@.  OK tb@ deraadt@
lib/libc/gen/ftok.c