[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/kpovmodeler
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2010-10-08 17:28:42
Message-ID: 20101008172842.71647AC892 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1183920 by cfeck:

Fix invalid QByteArray access

This fixes loading the test file from bug 253595 after
fixing the duplicate crash. Qt3 porting regression caused
by r585224.

CCBUG: 253595


 M  +3 -0      pmscanner.cpp  


--- trunk/extragear/graphics/kpovmodeler/pmscanner.cpp #1183919:1183920
@@ -512,6 +512,9 @@
 {
    do
    {
+      if (m_pDevice->atEnd())
+         m_char = -1;
+      else 
       m_char = m_pDevice->read( 1 ).at( 0 );
    }
    while( m_char == '\r' );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic