shithub: dumb

Download patch

ref: ff84ff32fe1fc82926020feedf894c4fb5c37ccd
parent: 3aee7f113c66f19e93f9e41a6e280e12dfd9a0e9
author: Chris Moeller <kode54@gmail.com>
date: Mon Jan 21 22:02:12 EST 2013

Fixed serious error with MPT extension reading

--- a/dumb/src/it/itread.c
+++ b/dumb/src/it/itread.c
@@ -1336,7 +1336,7 @@
     if ( !dumbfile_error( f ) && n < 10 )
     {
         unsigned int mptx_id = dumbfile_igetl( f );
-        while ( mptx_id != DUMB_ID('M','P','T','S') )
+        while ( !dumbfile_error( f ) && mptx_id != DUMB_ID('M','P','T','S') )
         {
             unsigned int size = dumbfile_igetw( f );
             switch (mptx_id)