-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Do we consider memcpy(ra + 32 - rlen, *sig, rlen)
in secp256k1_der_parse_integer
to be defined in the case of rlen == 0
?
Lines 102 to 104 in 98dac87
static int secp256k1_der_parse_integer(secp256k1_scalar *r, const unsigned char **sig, const unsigned char *sigend) { | |
int overflow = 0; | |
unsigned char ra[32] = {0}; |
Line 143 in 98dac87
memcpy(ra + 32 - rlen, *sig, rlen); |
Nothing high priority of course, but perhaps worth fixing? :)
This code was introduced as part of PR #334 ("Overhaul ECDSA signature parsing: strict DER, compact sigs, tests, lower-S") in 3bb9c44 back in 2015.
Metadata
Metadata
Assignees
Labels
No labels