Apache OpenOffice (AOO) Bugzilla – Issue 101952
sw: ambiguous && || has possibility to deference NULL
Last modified: 2013-08-07 14:44:00 UTC
in source/core/crsr/pam.cxx we have... if( pNd && ( ... ) || ( !bInReadOnly && pNd->FindSectionNode() && pNd->FindSectionNode()->GetSection().IsProtect() )) { } i.e. by precedence that's if( (pNd && ( ... )) || ( !bInReadOnly && pNd->FindSectionNode() && pNd->FindSectionNode()->GetSection().IsProtect() )) { } so if pNd == NULL then pNd can be dereferenced after the || which is presumably not what's intended. More than likely the logic if the following patch is intended
Created attachment 62289 [details] patch to fix
ama->os: cmc did it again ;-) a fix for Writer...
Integrated in cws os130
Set to verified. No testcase for a crash available.
closing, integrated DEV300m52