Created attachment 109092 [details]
When try open attached file Writer crash. My OS: Debian GNU/Linux Sid.
Created attachment 109096 [details]
segfault back trace SWW8Implreader::StopApo
Confirmed, setting NEW.
Crashing in W8 filter with SIGSEGV, Segmentation fault.
0x00007f9f1d1e559a in SwWW8ImplReader::StopApo (this=0x2921f20)
2513 /home/buildslave/source/libo-core/sw/source/filter/ww8/ww8par6.cxx: No such file or directory.
@Lubos, Miklos one for you guys?
A 7 page Word document with several illustrations and a couple of tables.
I could reproduce the crash with master sources updated today.
With this patch, no crash:
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 4ecf0d5..6f99566 100644
@@ -2505,7 +2505,7 @@ void SwWW8ImplReader::StopApo()
// function, the extension of the SW-fly has to be set
// manually as the SW fly has no auto function to adjust the
// frame´s size.
- if( pSFlyPara->nNewNetWidth > MINFLY ) // BoxUpWidth ?
+ if( pSFlyPara->nNewNetWidth > MINFLY && pSFlyPara->pFlyFmt ) // BoxUpWidth ?
long nW = pSFlyPara->nNewNetWidth;
nW += pSFlyPara->nWidth - pSFlyPara->nNetWidth; // Rand dazu
Miklos: is it ok or am I just hiding the root cause of this crash?
increase a bit the importance since there's a crash.
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":
Resolves fdo#86008: fix a crash when open doc file
It will be available in 4.4.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I pushed the patch because, as I indicated in the comment of the patch, I realized that the other blocks in this part of code, were doing the check I quoted in my previous comment.
gerrit for 4.3: https://gerrit.libreoffice.org/12356
The patch has been pushed for 4.3 branch (too late however for 4.3.4 but will be ok for 4.3.5).
Let's put this one to FIXED.