Home GnuPG
Diffusion GnuPG f80346f42df4

common: Use iobuf_get_noeof to avoid undefined behaviors.

Description

common: Use iobuf_get_noeof to avoid undefined behaviors.

* common/iobuf.c (block_filter): Use iobuf_get_noeof.

When singed integer has negative value, left shift computation is
undefined in C.

  • GnuPG-bug-id: T4093
  • Reported-by: Philippe Antoine
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Sep 10 2018, 6:44 AM
Parents
rGadce73b86fd4: agent: Fix error code check from npth_mutex_init.
Branches
Unknown
Tags
Unknown
Tasks
T4093: Undefined shift in parse_symkeyenc