change sanity check in stringvectorattribute to prevent overflow
@@ -84,7 +84,7 @@ StringVectorAttribute::readValueFrom (OPENEXR_IMF_INTERNAL_NAMESPACE::IStream &i
// check there is enough space remaining in attribute to
// contain claimed string length
- if( strSize < 0 || strSize+read > size)
+ if( strSize < 0 || strSize > size - read)
{
throw IEX_NAMESPACE::InputExc("Invalid size field reading stringvector attribute");
}
