[Bug 3269] sshbuf_get_u32() called with enum type argument in monitor.c

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Mar 4 09:43:26 AEDT 2021


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

--- Comment #3 from Stephen Goetze <goetze at dovetail.com> ---
The compiler is IBM xlc, and I had been building with c99 mode - the
INSTALL does say that any C89 or better compiler should work.

When I switch to c89, the problem persists, so it appears that IBM
doesn't downshift their treatment of enumerations when running in c89
mode.

IBM does have a #pragma enum(size) where the "size only to fit"
behavior can be overridden; that seems like the best option for us to
use.

You may want to make a note of this new behavior in c99 if you ever
decide to specify a newer standard for building; the potential exists
for a nasty bug.

Thanks for your quick response, you can close this.

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


More information about the openssh-bugs mailing list