mirror of
https://github.com/frida/tinycc
synced 2025-01-01 17:44:26 +03:00
Always set *palign in classify_x86_64_arg
Set *palign for VT_BITFIELD and VT_ARRAY types in classify_x86_64_arg as else you happen to have in *palign what was already there. This can cause gfunc_call on !PE systems to consider an array as 16 bytes align and trigger the assert if the previous argument was 16 bytes aligned.
This commit is contained in:
parent
fbc8810334
commit
59b8007f98
@ -993,6 +993,7 @@ static X86_64_Mode classify_x86_64_arg(CType *ty, CType *ret, int *psize, int *p
|
||||
|
||||
if (ty->t & (VT_BITFIELD|VT_ARRAY)) {
|
||||
*psize = 8;
|
||||
*palign = 8;
|
||||
*reg_count = 1;
|
||||
ret_t = ty->t;
|
||||
mode = x86_64_mode_integer;
|
||||
|
Loading…
Reference in New Issue
Block a user