- Merge PR #532 from Shchelk: Fix: buffer overflow bug.
+2 February 2022: George
+ - Merge PR #532 from Shchelk: Fix: buffer overflow bug.
+
1 February 2022: George
- Merge PR #603 from fobser: Use OpenSSL 1.1 API to access DSA and RSA
internals.
size_t addstrlen = 0;
/* add space */
+ /* when addlen < 2, the token buffer is full considering the NULL byte
+ * from strlen and will lead to buffer overflow with the second
+ * assignement below. */
if(addlen < 2) return 0;
token[*token_strlen] = ' ';
token[++(*token_strlen)] = 0;