amd64: avoid reading past end of passed struct
commitae8803cbe655f64a2ef1739c8dfc5c12af99bdfb
authorMichael Forney <mforney@mforney.org>
Sat, 25 Sep 2021 20:27:27 +0000 (25 13:27 -0700)
committerQuentin Carbonneaux <quentin@c9x.me>
Mon, 8 Nov 2021 13:11:10 +0000 (8 14:11 +0100)
treead526ee40568cc5ac7642ad677b69c69d3315377
parentcd095a44db262351b09ea144a44b76e22d62c77a
amd64: avoid reading past end of passed struct

If the size of the struct is not a multiple of 8, the actual struct
size may be different from the size reserved on the stack.

This fixes the case where the struct is passed in memory, but we
still may over-read a struct passed in registers. A TODO is added
for now.
amd64/sysv.c
arm64/abi.c