summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-09-07 11:35:34 +0000
committerbluhm <bluhm@openbsd.org>2017-09-07 11:35:34 +0000
commit4d661fe08286eae646fd95cfaabd9d2efa55ef0a (patch)
treefd72fa15d4de7ee2b19ac42cfe9cdfdd72f51da4 /sys/dev
parentIn elf_load_file() to not call free(9) with an uninitialized size (diff)
downloadwireguard-openbsd-4d661fe08286eae646fd95cfaabd9d2efa55ef0a.tar.xz
wireguard-openbsd-4d661fe08286eae646fd95cfaabd9d2efa55ef0a.zip
nfs_connect() returns EINVAL at the beginning if nm_sotype is
invalid. But the compiler cannot know whether it has changed in the meantime, so in the else case a bunch of variables would not be initialized. Add a panic() there to change the compiler's assumptions, the code should not be reached anyway. found by clang -Wuninitialized; OK deraadt@
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions