beehive-lab / mambo

A low-overhead dynamic binary instrumentation and modification tool for ARM (both AArch32 and AArch64 support) and RISC-V (RV64GC).
Apache License 2.0
318 stars 69 forks source link

Compilation warnings on A32 build #125

Open IgWod opened 3 months ago

IgWod commented 3 months ago

When building MAMBO on 32-bit Arm following warnings appear (also see GitHub Actions):

syscalls.c: In function ‘syscall_handler_pre’:
syscalls.c:233:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  233 |       clone_args.child_stack = (void*)cl_args->stack + cl_args->stack_size;
      |                                ^
syscalls.c:234:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  234 |       clone_args.ptid = (void*)cl_args->parent_tid;
      |                         ^a
syscalls.c:236:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  236 |       clone_args.ctid = (void*)cl_args->child_tid;
      |                         

This is not an ideal situation and having it fixed would be desirable. Leaving it here for now as a good first issue.