Home GnuPG
Diffusion GnuPG 8abf065307ff

common: Avoid undefined behavior of left shift operator.

Description

common: Avoid undefined behavior of left shift operator.

* common/iobuf.c (block_filter): Handle an error earlier.
Make sure it's unsigned.
  • GnuPG-bug-id: T4975
  • Suggested-by: lutianxiong <lutianxiong@huawei.com>
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 16 2020, 4:00 AM
Parents
rG91cb46d948db: regexp: Import change from JimTcl.
Branches
Unknown
Tags
Unknown
Tasks
T4975: undefined-shift in block_filter