From f8b003f0348f52800ef70a663de45dc49f2715c0 Mon Sep 17 00:00:00 2001 From: opa334 Date: Mon, 27 Nov 2023 22:50:44 +0100 Subject: [PATCH] Sync ChOma changes --- .../src/external/include/choma/CSBlob.h | 2 +- .../fastPathSign/src/external/lib/libchoma.a | Bin 89640 -> 90240 bytes RootHelper/external/include/choma/CSBlob.h | 2 +- RootHelper/external/lib/libchoma.a | Bin 90008 -> 90608 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Exploits/fastPathSign/src/external/include/choma/CSBlob.h b/Exploits/fastPathSign/src/external/include/choma/CSBlob.h index 0ee6aa1..5901e84 100644 --- a/Exploits/fastPathSign/src/external/include/choma/CSBlob.h +++ b/Exploits/fastPathSign/src/external/include/choma/CSBlob.h @@ -73,7 +73,7 @@ char *cs_blob_magic_to_string(int magic); // Extract Code Signature to file int macho_extract_cs_to_file(MachO *macho, CS_SuperBlob *superblob); -void macho_find_code_signature_bounds(MachO *macho, uint32_t *offsetOut, uint32_t *sizeOut); +int macho_find_code_signature_bounds(MachO *macho, uint32_t *offsetOut, uint32_t *sizeOut); CS_SuperBlob *macho_read_code_signature(MachO *macho); diff --git a/Exploits/fastPathSign/src/external/lib/libchoma.a b/Exploits/fastPathSign/src/external/lib/libchoma.a index d05afbdc1eae5aac94a35d3cf2c70e145a3ecf3b..e71ff9b1f1fa35b731b941fb18a4a340779e2447 100644 GIT binary patch delta 4845 zcmZvfdu-F!701udc7lxo=ZT%f#HP@Zge2HWSVNhSR|13*O2#t;0^v2WjCNGb3M<)c zM1hF%N5Vx4V;##zCK3eW5vCFvMp)TYg{(?YHchD00)@(IxV`=oe|d?|>z(cMd%a%HdA)w0@0(?1UT^6fUwP}d+@TgT z(F{9L-x7`H3TugIa0b!IaYP?KBKo1|8=|)*6GaAylExFI%+{#hO0+XeqXyJJwoZdL zQL}>x|0tSCAZQ&DPc9LHIkTm#f;fKN@;RE4+LXw$o z(nnM&+$IbQ{XFHEmLM8xp@S3Ln zlu}yM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