[Bug 3584] Segfault when built with optimisations on macOS 13 (x86_64) with Xcode 14.3

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jun 27 18:06:08 AEST 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3584

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at dtucker.net

--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Carlo Cabrera from comment #2)
> Do you have a recommendation on which workaround is better to adopt?

IMO you'd be better off with the compiler hardening flags rather than
-Os.  Things like -ftrapv could mitigate what would otherwise be a
vulnerability.

If you want to investigate further, you could enumerate the flags added
by --with-hardening (which will depend on what the compiler supports,
you could diff Makefile generated with and without) and add them to
CFLAGS one at a time along with -Os and see if you can narrow down
which of them triggers the problem.

(I tried installing xcode 14.3 to reproduce but my test mac doesn't
support a new enough OSX version to do that.)

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list