Skip to content

Commit 32fb259

Browse files
committed
ignore variadic params in detour entry functions
1 parent deb90c1 commit 32fb259

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

prd_multidecomp_ida.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ def reorder_(self,resolvable,x_requires,orig_x_requires,fnptr_types):
15481548
using_others=any([x in reduced_x_requires[o] for x in (not_o)]) if not_o is not None else False
15491549
dprint(f"DEBUG: CHECK(0): direct_unresolved=> {direct_unresolved}")
15501550
if o in reduced_x_requires[o]:
1551-
if o in direct_unresolved:
1551+
if o in direct_unresolved and o in initial_x_requires[o]:
15521552
# let's put self-referencing type declarations at the end
15531553
dprint(f"DEBUG: FOURTH: {o} [{x_requires[o]}] => {direct_unresolved} [{initial_x_requires[o]}]")
15541554
fourth.append(o)
@@ -2612,7 +2612,9 @@ def generate_wrapper(self, target_list, funcs, stubMap, dataMap, detour_prefix,
26122612
ZERO_PARAMS=False
26132613
argType = argTuple[0]
26142614
argName = argTuple[1]
2615-
if "double" in argType or "float" in argType or "int" in argType:
2615+
if argType=="...":
2616+
next;
2617+
elif "double" in argType or "float" in argType or "int" in argType:
26162618
mainStub_t += "\t\t(%s) 0,\n" % argType
26172619
else:
26182620
varname=f"v{len(mainStub_pre)}";

0 commit comments

Comments
 (0)