cvs commit: src/sys/netipsec xform.h xform_ipip.c

Bjoern A. Zeeb bz at FreeBSD.org
Sat Apr 1 15:22:44 UTC 2006


bz          2006-04-01 15:22:44 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/netipsec         xform.h xform_ipip.c 
  Log:
  MFC:
  rev. 1.3 src/sys/netipsec/xform.h, rev. 1.12 src/sys/netipsec/xform_ipip.c
  
    Fix more stack corruptions on amd64.
  
    Vararg functions have a different calling convention than regular
    functions on amd64. Casting a varag function to a regular one to
    match the function pointer declaration will hide the varargs from
    the caller and we will end up with an incorrectly setup stack.
  
    Entirely remove the varargs from these functions and change the
    functions to match the declaration of the function pointers.
    Remove the now unnecessary casts.
  
    Also change static struct ipprotosw[] to two independent
    protosw/ip6protosw definitions to remove an unnecessary cast.
  
  PR:                             amd64/95008
  Submitted and tested by:        Mats Palmgren
  Reviewed by:                    rwatson
  Approved by:                    re (mux)
  
  Revision  Changes    Path
  1.2.2.1   +1 -1      src/sys/netipsec/xform.h
  1.11.2.1  +10 -18    src/sys/netipsec/xform_ipip.c


More information about the cvs-src mailing list