mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Merge branch 'bug24247_032' into maint-0.3.2
This commit is contained in:
commit
cf1e6ad2d7
6
changes/bug24247
Normal file
6
changes/bug24247
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
o Minor bugfixes (fuzzing):
|
||||||
|
- Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(), to
|
||||||
|
correctly handle cases where a caller gives it an RSA key of under 160
|
||||||
|
bits. (This is not actually a bug in Tor itself, but wrather in our
|
||||||
|
fuzzing code.) Fixes bug 24247; bugfix on 0.3.0.3-alpha.
|
||||||
|
Found by OSS-Fuzz as issue 4177.
|
@ -28,8 +28,9 @@ mock_crypto_pk_public_checksig__nocheck(const crypto_pk_t *env, char *to,
|
|||||||
(void)fromlen;
|
(void)fromlen;
|
||||||
/* We could look at from[0..fromlen-1] ... */
|
/* We could look at from[0..fromlen-1] ... */
|
||||||
tor_assert(tolen >= crypto_pk_keysize(env));
|
tor_assert(tolen >= crypto_pk_keysize(env));
|
||||||
memset(to, 0x01, 20);
|
size_t siglen = MIN(20, crypto_pk_keysize(env));
|
||||||
return 20;
|
memset(to, 0x01, siglen);
|
||||||
|
return (int)siglen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user