Fix crash in signatures and minor fix for meson

This commit is contained in:
pancake 2017-05-02 05:43:44 +02:00
parent 8edc242324
commit fa0409dab7
3 changed files with 6 additions and 3 deletions

View File

@ -73,7 +73,7 @@ files=[
'sign.c',
'state.c',
'switch.c',
'test.c',
# 'test.c',
'types.c',
'value.c',
'var.c',

View File

@ -1090,7 +1090,7 @@ R_API RSignItem *r_sign_item_dup(RSignItem *it) {
if (it->bytes) {
ret->bytes = R_NEW0 (RSignBytes);
if (!ret->bytes) {
r_sign_item_free (ref);
r_sign_item_free (ret);
return false;
}
ret->bytes->size = it->bytes->size;

View File

@ -222,6 +222,9 @@ r_asm = shared_library('r_asm', files,
'arch/8051'
]),
c_args: ['-DCORELIB'],
link_with: [r_util, r_syscall, r_parse, r_lang, capstone, spp],
link_with: [r_util, r_syscall, r_parse, r_lang, spp],
objects: [
capstone.extract_all_objects()
],
install: true
)