This bug was also e-mailed to upstream, who fixed it immediately. So the fix for this bug would be to package version 20170218 now available at http://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c (keeping in mind that it also contains some unrelated changes).
smime.p7s
Description: S/MIME cryptographic signature

