curl Hit by Two ARM64 Compiler Bugs in GCC 15/16 and Rust

Two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, hit curl

curl Hit by Two ARM64 Compiler Bugs in GCC 15/16 and Rust

curl maintainer Daniel Stenberg reports that two ARM64-specific compiler optimization bugs, in GCC 15/16 and Rust, have struck the project. The discovery is a rare case of the mythical compiler bug, since such faults usually turn out to be the programmer's own mistake. One commenter notes the issue still reproduces on the latest OpenSSL revisions and hints at a different, possibly ASM-related cause, while clang builds remain unaffected.

Every programmer knows they are out there. But every time, the fault turns out to have been their own mistake! This will keep our hopes alive!
  1. vlovich123

    Not actually confirmed as compiler bugs yet.

    Here’s a similar bug where OpenSSL’s inline asm was wrong and probably only GCC was smart enough to try to exploit the bug:

    https://github.com/openssl/openssl/pull/23233

    Same for rust - could be UB in quiche that is getting exposed.

  2. edoceo

    The social post links to this bug https://github.com/curl/curl/issues/23237

  3. rurban

    Looks like a valid new optimization to me, which only fails on valgrind, which is a bit too strict with uninitialized values. In openssl's strlcpy. They'll deal with that.

More from this day

2026-10-06