same than #179159
patch is in /usr/portage/media-libs/jasper/files/jasper-overflow-fix.patch Only change is "uint_fast16_t" replaced with "uint_fast32_t", but apart from that it should apply just fine. Graphics, please provide a fixed ebuild.
netpbm forces external jasper linking like any correct package should if you find that's not the case, let me know