⬢ DragonFlyBSD Kernel Audit
DF-3318 / build.log
← back to finding ↓ download raw
# guest: cc -O -o setup setup.c && cc -O -o leak leak.c && cc -O -o delete delete.c
setup.c: In function 'main':
setup.c:133:2: warning: 'memset' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
  memset(&ifra.ifra_prefixmask.sin6_addr + 8, 0x00, 8);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(benign gcc warning about sin6_addr[8..15] being the last member view of the
 userland struct -- /64 mask second half; binaries built: setup leak delete)
BUILD-OK