Basically the same issue than bug #179159 The patch is in /usr/portage/media-libs/jasper/files/jasper-overflow-fix.patch Both ghostscript-gpl-8.54 and the patched version ghostscript-gnu-8.60 are vulnerable.
*** This bug has been marked as a duplicate of bug 196860 ***