[Bug 1885] New: umac.c contains strict aliasing violations

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Mar 30 11:47:50 EST 2011


           Summary: umac.c contains strict aliasing violations
           Product: Portable OpenSSH
           Version: 5.8p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: raymes.khoury at gmail.com

In the function uhash_init, ahc->poly_key_8 points to a UINT64. This is
passed to endian_convert as a void*. It is then cast to a UINT32* and
the buffer is modified. This is a strict aliasing violation. It can
(and did in our case) cause code to be mis-compiled when
-fstrict-aliasing is used (which is true for -O2 in gcc). This
introduced a runtime error in sshd. Refer to:

Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list