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)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Sep 2018 04:44:47 +0000 (13:44 +0900)
commitf80346f42df4bdc7d0a9741c3922129aceae4f81
tree9df16b545299da4d0ab44455053ff6419b431946
parentadce73b86fd49d5bbb8884231a26cc7533d400e2
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: 4093
Reported-by: Philippe Antoine
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
common/iobuf.c