Bug 26039 - Listener Compiler-Optimierung , stack protector und FORTIFY_SOURCE aktivieren
Listener Compiler-Optimierung , stack protector und FORTIFY_SOURCE aktivieren
Product: UCS
Classification: Unclassified
Component: Listener (univention-directory-listener)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Philipp Hahn
Arvid Requate
: interim-1
Depends on: 25958
  Show dependency treegraph
Reported: 2012-02-07 12:48 CET by Arvid Requate
Modified: 2017-04-04 18:29 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): UCS Performance
Max CVSS v3 score:


Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2012-02-07 12:48:43 CET
Der an Bug 25958 Comment 5 angehängte Patche  aktivieren Compiler-Optimierungen (-O2) für den Build von Listener und Notifier. Aktuell sind sie nicht aktiviert. Außerdem wird -fstack-protector --param=ssp-buffer-size=4 aktiviert, mit dem der Prozess bei einem Überlauf kontrolliert beendet wird. (flags.patch)

Außerdem sollten wir D_FORTIFY_SOURCE aktivieren; dadurch ersetzt der Compiler Speicherzugriffe mit konstanter Länge. fortify.patch, open.patch). Die Patches hängen an Bug 25958 Comment 6 und 7

+++ This bug was initially created as a clone of Bug #25958 +++
Comment 1 Philipp Hahn univentionstaff 2016-09-12 13:02:15 CEST
r72517 | Bug #26039 UDL: Fix compilation erros
 I had to fix UDL anyway to fix some compilation problems with gcc from UCS-4.2, so I fixed it.

Package: univention-directory-listener
Version: 11.0.0-1A~
Branch: ucs_4.2-0
Comment 2 Arvid Requate univentionstaff 2017-02-01 20:47:57 CET
Verified, defined during built time (man dpkg-buildflags):

* -O2 -fstack-protector-strong

Additional return code checks in the source are ok too.

I've added a changelog entry.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:42 CEST
UCS 4.2 has been released:

If this error occurs again, please use "Clone This Bug".