Apache OpenOffice (AOO) Bugzilla – Issue 96114
rtf: suspicious ambiguous && ||
Last modified: 2013-08-07 14:43:11 UTC
in sw/source/filter/rtf/wrtrtf.cxx we have if( nsUseOnPage::PD_MIRROR & pAktPageDesc->GetUseOn() && !pAktPageDesc->IsFooterShared() || !pAktPageDesc->IsHeaderShared() ) which expanded by operator precedence is if( (nsUseOnPage::PD_MIRROR & pAktPageDesc->GetUseOn() && !pAktPageDesc->IsFooterShared()) || !pAktPageDesc->IsHeaderShared() ) which looks real suspicious, it might have been intended to be if ( (nsUseOnPage::PD_MIRROR & pAktPageDesc->GetUseOn()) && (!pAktPageDesc->IsFooterShared() || !pAktPageDesc->IsHeaderShared()) ) If the second was intended, then the attached patch changes it to that.
Created attachment 57901 [details] suspicious code
set target
applied patch
Sending source/filter/rtf/wrtrtf.cxx Transmitting file data . Committed revision 263721.
reassigned
verified
closed