git: DragonFly_RELEASE_2_4 kern_{get,set}sockopt - invalid value check

Stathis Kamperis beket at crater.dragonflybsd.org
Thu Mar 18 03:22:39 PDT 2010


commit 12bdf3fec24e6912ace6e07a8bcf97ccf21d12be
Author: Alex Hornung <ahornung at gmail.com>
Date:   Wed Mar 17 14:20:15 2010 +0000

    kern_{get,set}sockopt - invalid value check
    
    * Check for sopt_val != NULL && sopt_valsize == 0 and return EINVAL in
      this case, or else an assert will be triggered and the kernel will
      panic.
    
    Dragonfly-bug: http://bugs.dragonflybsd.org/issue1696

Summary of changes:
 sys/kern/uipc_syscalls.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/12bdf3fec24e6912ace6e07a8bcf97ccf21d12be


-- 
DragonFly BSD source repository





More information about the Commits mailing list