Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2017 17:59:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 218919] setsockopt() accepts too long arguments allowing programmer errors
Message-ID:  <bug-218919-2472-JduZGos9Gk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218919-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218919-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218919

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: brooks
Date: Fri Apr 28 17:58:16 UTC 2017
New revision: 317566
URL: https://svnweb.freebsd.org/changeset/base/317566

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

  These command 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
  MFC after:    1 week
  Sponsored by: DARPA, AFRL
  Differential Revision:        https://reviews.freebsd.org/D10518

Changes:
  head/tests/sys/kern/unix_seqpacket_test.c

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218919-2472-JduZGos9Gk>