diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-23 18:16:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-23 18:17:00 +0200 |
commit | d84d78d2d26c4cf3cdd89c8a30fcb602b2909cb0 (patch) | |
tree | 364c2874ff63a92cb5a52e8b5f3f7f8b1b60e577 /common.h | |
parent | Improve srand seed (diff) | |
download | libar2simplified-1.1.2.tar.gz libar2simplified-1.1.2.tar.bz2 libar2simplified-1.1.2.tar.xz |
Fix critical bug for automatic salt generation1.1.2
If getrandom(3) generated bytes with the highest bit set and
(char) is (signed char) (ones' or two's complement is used),
those bytes would become negative indices, rather than be
inside [0, 64), causing random data to be writting into the
salt.
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
0 files changed, 0 insertions, 0 deletions