-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Seeing some incomplete type
on recompilation, e.g.:
mjs_recomp.c:202:99: error: field ‘sig’ has incomplete type
typedef struct mjs_ffi_cb_args{ struct mjs_ffi_cb_args *next; struct mjs *mjs; struct mjs_ffi_sig sig; ulong_t func; ulong_t userdata;} mjs_ffi_cb_args;
^~~
mjs_recomp.c:214:133: error: field ‘u’ has incomplete type
typedef struct json_out{ int (*printer)(struct json_out *, const char *, size_t); union json_out___A1907A2A5AD0AD422285F2D4DADB62AC u;} json_out;
Binary Duplication steps:
git clone [email protected]:pdreiter/mjs.git
cd mjs; make; cd ..
echo "mjs,mjs/build/mjs,mjs_get_cstring" >> target_list.0
python3 <PATH>/prd_multidecomp_ida.py --target_list target_list.0 --ouput_directory mjs_decomp --scriptpath <PATH>/get_ida_details.py
Recompile by :
cd mjs_decomp/mjs
wget -O Makefile.prd https://raw.githubusercontent.com/pdreiter/FuncRepair/master/tools/templates/Makefile.prd?token=GHSAT0AAAAAABNYWLLCU3LPWTC372UKWU4QYSIT27A
make -f Makefile.prd hook
I think reconstruction may be complicated due to function pointer types.
Metadata
Metadata
Assignees
Labels
No labels