diff --git a/README.md b/README.md index 7ce7934..938bb6e 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ a small Rust crate to verify Minisign signatures. to handle and create Minisign signatures. * [minisign-py](https://github.com/HacKanCuBa/minisign-py) is a pure Python port of Minisign. +* [minisign](https://github.com/chm-diederichs/minisign) a Javascript +implementation. Faults injections ----------------- diff --git a/src/base64.c b/src/base64.c index ccc339a..e9c4918 100644 --- a/src/base64.c +++ b/src/base64.c @@ -28,8 +28,8 @@ b64_to_bin(unsigned char * const bin, const char *b64, const unsigned char *b64_u = (const unsigned char *) b64; unsigned char *bin_w = bin; unsigned char mask = 0U; - unsigned char t0, t1, t2, t3; - uint32_t t; + unsigned char t0 = 0, t1 = 0 , t2 = 0, t3 = 0; + uint32_t t = 0; size_t i; if (b64_len % 4U != 0U || (i = b64_len / 4U) <= 0U || bin_maxlen < i * 3U -