Univention Bugzilla – Bug 26039
Listener Compiler-Optimierung , stack protector und FORTIFY_SOURCE aktivieren
Last modified: 2017-04-04 18:29:42 CEST
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 +++
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~4.2.0.201609121259 Branch: ucs_4.2-0
Verified, defined during built time (man dpkg-buildflags): * -O2 -fstack-protector-strong * -D_FORTIFY_SOURCE=2 Additional return code checks in the source are ok too. I've added a changelog entry.
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".