Add some missing bounds checks in signature verification routines.