[Bug 218919] setsockopt() accepts too long arguments allowing programmer errors

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 5 15:16:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218919

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: brooks
Date: Fri May  5 15:15:42 UTC 2017
New revision: 317831
URL: https://svnweb.freebsd.org/changeset/base/317831

Log:
  MFC r317566:

  Don't pass size_t arguments to setsockopt(SO_SNDBUF/SO_RCVBUF).

  These commands take an int. The tests work by accident on little-endian,
  64-bit systems.

  PR:           218919
  Tested with:  qemu-cheri and CheriBSD built for mips64
  Reviewed by:  asomers, ngie
  Obtained from:        CheriBSD
  Sponsored by: DARPA, AFRL

Changes:
_U  stable/11/
  stable/11/tests/sys/kern/unix_seqpacket_test.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list