Public bug reported:

While evaluating libreoffice for the -fno-omit-frame-pointer option
presence we identified the following files as having missing flags:

libreoffice-core:

/usr/lib/libreoffice/program/libstaroffice-0.0-lo.so.0

- All compilations units.

libreoffice-draw:
/usr/lib/libreoffice/program/libwpftdrawlo.so

Various files with relative paths ending in .cpp as
- ZMFDocument.cpp
- BMIHeader.cpp
- BMIParser.cpp
- "BMITypes.cpp"
- "ZBRHeader.cpp"
⁻ "ZBRParser.cpp"
- "ZMF4Header.cpp"
- "ZMF4Parser.cpp"

It's worth noting that there are some files that do have all the flags;
these are specified using absolute file paths and their paths end in
.cxx instead of .cpp, such as
"/usr/src/libreoffice-4:24.2.4-0ubuntu0.24.04.1/writerperfect/source/draw/CDRImportFilter.cxx"

Further investigation is needed why this is failing for these
compilation units. Note that this also downgrades some security
features:

.cxx files are compiled with

"GNU C++20 13.2.0 -mno-omit-leaf-frame-pointer -mtune=generic
-march=x86-64 -g -O2 -std=c++20 -fvisibility=hidden -finput-
charset=UTF-8 -fmessage-length=0 -fno-common -fvisibility-inlines-hidden
-fPIC -fno-omit-frame-pointer -fstack-protector-strong -fcf-
protection=full -fexceptions -fno-enforce-eh-specs -fasynchronous-
unwind-tables -fstack-protector-strong -fstack-clash-protection"

.cpp files with

"GNU C++20 13.2.0 -mtune=generic -march=x86-64 -ggdb2 -O2 -std=c++20
-finput-charset=UTF-8 -fmessage-length=0 -fno-common -fvisibility-
inlines-hidden -fvisibility=hidden -fPIC -fasynchronous-unwind-tables
-fstack-protector-strong -fstack-clash-protection -fcf-protection"


So  -fcf-protection=full is downgraded to just strong -fcf-protection


Note that this does not include preprocessor flags, only compilation flags.

** Affects: libreoffice (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2073128

Title:
  Missing compiler flags

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/2073128/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to