-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #663: Patch out any instances of printf in upstream
7a0c60e secp256k1-sys: patch out checked_malloc (Andrew Poelstra) 942a0e5 build.rs: patch out any calls to `printf` (Andrew Poelstra) 51dab7a vendor-libsecp: remove util.h patch (Andrew Poelstra) Pull request description: Rather than using a new patchfile, just `#define` it away. Also includes a commit which removes one of the existing patchfiles, which I discovered was out of date while auditing the others to see if they could be replaced by `#define`s. (No, they cannot.) Fixes #660 ACKs for top commit: tcharding: AFAICT this is right to go, ACK 7a0c60e Kixunil: ACK 7a0c60e Tree-SHA512: 83ba70b000919fb8a929804c9d5929a9929b80515f0594925d3789ef896889d3c909f9fa920bac45470611607b84f509723544fa442ff1a51eefba0de75bf68f
- Loading branch information
Showing
3 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
10c10,12 | ||
< | ||
148,152c148,150 | ||
< void *ret = malloc(size); | ||
< if (ret == NULL) { | ||
< secp256k1_callback_call(cb, "Out of memory"); | ||
< } | ||
< return ret; | ||
--- | ||
> extern int secp256k1_ecdsa_signature_parse_compact( | ||
> const secp256k1_context *ctx, | ||
> secp256k1_ecdsa_signature *sig, const unsigned char *input64); | ||
> (void) cb; | ||
> (void) size; | ||
> return NULL; |