Found using oss-fuzz
In file common/iobuf.c, function block_filter, line a->size = (size_t)iobuf_get (chain) << 24;and following
Patch should control each return of iobuf_get before doing the shift.
Bug can be reproduced by running
gpg --import crash-5f781765c3e418de81c4a5e6087b6c2beda9dbbd