Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault On ubuntu? #3

Open
ghost opened this issue Sep 28, 2016 · 2 comments
Open

Segmentation fault On ubuntu? #3

ghost opened this issue Sep 28, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 28, 2016

microwaveos@microwaveos-Aspire-XC-704:~/Downloads/iBoot32Patcher-master$ ./iBoot32Patcher iBoot iBoot.patched
main: Starting...
main: iBoot-2817 inputted.
patch_rsa_check: Entering...
find_bl_verify_shsh_generic: Entering...
Segmentation fault (core dumped)
EDIT: I used iphone5,2 9.0.0 IPSW's iBoot.
EDIT 2: I got these "warnings" when compiling
functions.c:65:19: warning: implicit declaration of function 'memmem' is invalid
in C99 [-Wimplicit-function-declaration]
void* ldr_xref = memmem(iboot_in->buf, iboot_in->len, &value, si...
^
functions.c:65:8: warning: incompatible integer to pointer conversion
initializing 'void ' with an expression of type 'int' [-Wint-conversion]
...ldr_xref = memmem(iboot_in->buf, iboot_in->len, &value, sizeof(value));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
functions.c:127:9: warning: incompatible integer to pointer conversion returning
'int' from a function with result type 'void *' [-Wint-conversion]
return memmem(iboot_in->buf, iboot_in->len, &new_pat, sizeof(uint32_t));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
functions.c:212:9: warning: incompatible integer to pointer conversion returning
'int' from a function with result type 'void *' [-Wint-conversion]
return memmem(mem, size, str, strlen(str));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
patchers.c:152:26: warning: implicit declaration of function 'memmem' is invalid
in C99 [-Wimplicit-function-declaration]
void
cmd_ptr_str_loc = memmem(iboot_in->buf, iboot_in->len, cmd...
^
patchers.c:152:8: warning: incompatible integer to pointer conversion
initializing 'void *' with an expression of type 'int' [-Wint-conversion]
...cmd_ptr_str_loc = memmem(iboot_in->buf, iboot_in->len, cmd_bytes, cmd_bytes_len);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.

@iH8sn0w
Copy link
Owner

iH8sn0w commented Oct 1, 2016

@jakeHq Thanks for the log.

Try using 4750d80

@ghost
Copy link
Author

ghost commented Oct 3, 2016

Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant