Module Name: src Committed By: mrg Date: Thu Aug 10 20:49:20 UTC 2023
Modified Files: src/sys/dev/acpi/wmi: wmi_acpi.c src/sys/dev/ieee1394: fwohci.c src/sys/ufs/ext2fs: ext2fs_lookup.c src/sys/ufs/ufs: ufs_lookup.c src/usr.sbin/fwctl: fwdv.c Log Message: don't assign struct pointers to smaller then structure regions of memory. in all cases here, the later parts of the structure are not actually accessed, so there are no existing bugs here beyond general UB. for the ufs ones, this also removes some casts. found by GCC 12. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/acpi/wmi/wmi_acpi.c cvs rdiff -u -r1.151 -r1.152 src/sys/dev/ieee1394/fwohci.c cvs rdiff -u -r1.92 -r1.93 src/sys/ufs/ext2fs/ext2fs_lookup.c cvs rdiff -u -r1.157 -r1.158 src/sys/ufs/ufs/ufs_lookup.c cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/fwctl/fwdv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.