KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Fix -Wstringop-overflow warnings in fs/smb/client/cifssmb.c #310

Closed GustavoARSilva closed 5 months ago

GustavoARSilva commented 1 year ago

Found in powerpc64 and s390 (and a couple more archs).

fs/smb/client/cifssmb.c:2987:31: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
fs/smb/client/cifssmb.c:2988:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
GustavoARSilva commented 1 year ago

Patch: https://lore.kernel.org/linux-hardening/ZK3h3+dHBGONHt+S@work/

GustavoARSilva commented 5 months ago

fixed in commit f1f047bd7ce0d73788e04ac02268060a565f7ecb