summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2006-03-30 18:57:04 +0000
committerbz <bz@FreeBSD.org>2006-03-30 18:57:04 +0000
commit17b93d79f6279c53f5b86032a17d2eddacc1fc2d (patch)
tree0672aa33c1c4aaecb43005db71ffdfea5c87f440 /lib/libc/stdlib/malloc.c
parentf0667561aafda6d724304328a9441ef3d978e30e (diff)
downloadFreeBSD-src-17b93d79f6279c53f5b86032a17d2eddacc1fc2d.zip
FreeBSD-src-17b93d79f6279c53f5b86032a17d2eddacc1fc2d.tar.gz
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 MFC after: 3 days
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud