Version: Unbekannt (using KDE 3.2.90 (CVS >= 20040117), compiled sources) Compiler: gcc version 3.3.1 (SuSE Linux) OS: Linux (i686) release 2.4.21-99-athlon This is on HEAD update of 2004-03-20. Neither KWord nor KSpread can load their newly written files anymore. I get a "no valid KOffice file" error message (in German: "Öffnen der Datei /home/bp/Desktop/Test.kwd nicht möglich Ursache: Keine gültige KOffice-Datei"), then the apps both crash upon closing the error message window. (Sorry, no backtrace available.)
Created attachment 5321 [details] test file which crashed kword on load
Created attachment 5322 [details] This is the corrupted file (Sorry, wrong file sent.)
Created attachment 5323 [details] original, uncorrupted file This file was loaded into KWord, then saved as Test.kwd
CVS commit by faure: Ouch, logic error introduced in my last commit to this file... Thanks for the report, sorry for the breakage. CCMAIL: 78168-done@bugs.kde.org M +1 -1 kzip.cpp 1.47 --- kdelibs/kio/kio/kzip.cpp #1.46:1.47 @@ -760,5 +760,5 @@ bool KZip::closeArchive() crc = crc32(crc, (Bytef *)buffer, bufferSize ); - bool ok = ( device()->writeBlock( buffer, bufferSize ) != bufferSize ); + bool ok = ( device()->writeBlock( buffer, bufferSize ) == bufferSize ); delete[] buffer; if ( !ok )