verify_ecdsa reads sig[1] before it checks len(sig) < 4, so a 0- or 1-byte signature raises IndexError instead of returning False, which the comment promises for any DER encoding error.
Move the length check ahead of the byte access, and add a regression test.