summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2016-01-11 15:35:29 +0000
committerallanjude <allanjude@FreeBSD.org>2016-01-11 15:35:29 +0000
commit2af23444c6e30ff6f90dc45643cdf1b2295d20d4 (patch)
tree0916426712f745f9520bcf2341b67bbb4e90b2c0 /contrib/llvm/lib/IR/ConstantFold.cpp
parent5aea4e36e2be1eb8c7a74e1c40476355128f14e9 (diff)
downloadFreeBSD-src-2af23444c6e30ff6f90dc45643cdf1b2295d20d4.zip
FreeBSD-src-2af23444c6e30ff6f90dc45643cdf1b2295d20d4.tar.gz
DIOCGSECTORSIZE expects to write to a u_int, but struct zfs_probe_args
member secsz was a uint16_t sys/boot/zfs/zfs.c has a probe args structure member, secsz, that is a uint16_t for media sector size; it is used as an argument for ioctl() at line 484. however, this ioctl writes 32 bits of data (u_int *) and therefore this ioctl will overwrite and corrupt 16 bits of memory. other use cases seem to use correct u_int type for secsz. PR: 204358 Submitted by: Toomas Soome <tsoome at me.com> Reviewed by: asomers, delphij, smh MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D4811
Diffstat (limited to 'contrib/llvm/lib/IR/ConstantFold.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud