diff options
author | Dmitry Safonov <dsafonov@virtuozzo.com> | 2017-03-07 22:37:17 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-03-15 09:36:09 +0300 |
commit | 72557edb1506fcab56a6c1390070c3fbee4cdeb6 (patch) | |
tree | 3bbb4788cb57adf97cb2a315af1c43c9fcf4059e /compel/arch/aarch64/src/lib/infect.c | |
parent | cda7d6b2f9e44704c18989f56166086800604d9d (diff) |
compel/ksigset: fix ksigaddset() UB and flushing mask
Found by Coverity error:
> CID 172193 (#1 of 1): Bad bit shift operation (BAD_SHIFT)
> 1. large_shift: In expression 1 << sig % 64, left shifting
> by more than 31 bits has undefined behavior. The shift amount,
> sig % 64, is as much as 63.
That is:
1. yes, UB
2. while adding a signal to mask, this has flushed all other
signals from mask.
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'compel/arch/aarch64/src/lib/infect.c')
0 files changed, 0 insertions, 0 deletions