common: Use iobuf_get_noeof to avoid undefined behaviors.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Sep 2018 04:44:47 +0000 (13:44 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 8 Oct 2018 15:36:01 +0000 (16:36 +0100)
commit8ec447e347dfc04e9a8a7b1f351bb29e6e59a076
tree8487d147bc51a3887906f862c57df044814618e5
parent776d059b018967be3441d99dc2c6a3587b6d7aef
common: Use iobuf_get_noeof to avoid undefined behaviors.

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

--

Cherry-pick from master commit of:
f80346f42df4bdc7d0a9741c3922129aceae4f81

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

GnuPG-bug-id: 4093
Reported-by: Philippe Antoine
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit 0383e7fed7b2a45c7f0ae4c11415c6a9a3a3ddb7)

Gbp-Pq: Name common-Use-iobuf_get_noeof-to-avoid-undefined-behaviors.patch
common/iobuf.c