tweaked length check to deal with old encoding issue
@@ -98,7 +98,8 @@ else if (l == 255)
throw new EOFException("unexpected EOF reading signature sub packet");
}
- if (bodyLen < 0 || bodyLen > limit)
+ // see below about miscoding... we'll try not to panic about anything under 2K.
+ if (bodyLen <= 0 || (bodyLen > limit && bodyLen > 2048))
{
throw new EOFException("out of range data found in signature sub packet");
}
