Skip to content

Commit 8d424b0

Browse files
committed
Remove minPrefixLen test that duplicates PR AcademySoftwareFoundation#2377
That fix belongs in AcademySoftwareFoundation#2377, not combined with the shift fix. Signed-off-by: Cary Phillips <cary@ilm.com>
1 parent c2b1826 commit 8d424b0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/lib/OpenEXR/ImfIDManifest.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,6 @@ IDManifest::init (const char* data, const char* endOfData)
344344
//
345345
// previous string had more than 255 characters?
346346
//
347-
const size_t minPrefixLen =
348-
stringList[i - 1].size () > 255 ? size_t (2) : size_t (1);
349-
if (stringList[i].size () < minPrefixLen)
350-
{
351-
throw IEX_NAMESPACE::InputExc (
352-
"IDManifest string too small for common prefix length");
353-
}
354347
if (stringList[i - 1].size () > 255)
355348
{
356349
common = size_t (((unsigned char) (stringList[i][0])) << 8) +

0 commit comments

Comments
 (0)