diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-02-14 07:28:09 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-02-14 07:28:09 -0800 |
commit | 4d25e42d7c0c19ac8fafdc458676b17d0ac0ec43 (patch) | |
tree | a36c69192c30d673a256c039ab5e9945023380f5 /lisplib.c | |
parent | 7919f7c93ac034ee9f739966f122fa324b865b30 (diff) | |
download | txr-4d25e42d7c0c19ac8fafdc458676b17d0ac0ec43.tar.gz txr-4d25e42d7c0c19ac8fafdc458676b17d0ac0ec43.tar.bz2 txr-4d25e42d7c0c19ac8fafdc458676b17d0ac0ec43.zip |
random: shift bug uncovered by ubsan.
* rand.c (random): When calculating the msb_rand_mask, avoid
shifting a 32 bit value by 32 bits. In that case we want the
mask to be 0xFFFFFFFF, so we shift by zero.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions