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

List:       kde-bugs-dist
Subject:    [Bug 97960] With some WordPerfect documents, KWord crashes
From:       Sven Lueppken <sven () kde ! org>
Date:       2005-01-30 22:48:10
Message-ID: 20050130224810.10399.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=97960         
sven kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sven kde org  2005-01-30 23:48 -------
CVS commit by lueppken: 

Fixed #97960...accessing an illegal array element isn't a good idea :)

BUG:97960


  M +1 -1      parser.cpp   1.7


--- koffice/filters/kword/wordperfect/import/parser.cpp  #1.6:1.7
 @ -821,5 +821,5  @ Parser::parseDocWP6 (const QString & fil
               {
                 unsigned fontpid = pid[0];
-                if( fontpid > packets.count() ) continue;
+                if( fontpid == 0 || fontpid > packets.count() ) continue;
                 Packet* p = packets.at( fontpid-1 );
                 if( p->type==85 )
[prev in list] [next in list] [prev in thread] [next in thread] 

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