gramineproject / gramine

A library OS for Linux multi-process applications, with Intel SGX support
GNU Lesser General Public License v3.0
587 stars 193 forks source link

[PAL,mbedtls] Fix build issues on newer Ubuntu and Clang #1923

Closed dimakuv closed 3 months ago

dimakuv commented 3 months ago

Description of the changes

Two issues fixed:

This was detected on Ubuntu 24.04 and Clang 18. I don't know why I didn't observe this before; one of newer Ubuntu or Clang is the culprit.

Regarding the second issue, I also submitted an issue to mbedTLS team: https://github.com/Mbed-TLS/mbedtls/issues/9312

How to test this PR?

Build with Ubuntu 24.04 and Clang 18 (default on 24.04).


This change is Reviewable