Various fixes to content GCC 16...

This commit is contained in:
Philippe Teuwen committed 2026-02-07 00:51:53 +01:00
1 parent d62e3cff15
commit fdf3b2690a
7 files changed
+17 -12

No files matched your search

+8 -5
View File
@@ -365,12 +365,15 @@ int mbedtls_sha512_update_ret(mbedtls_sha512_context *ctx,
left = 0;
}
while (ilen >= 128) {
if ((ret = mbedtls_internal_sha512_process(ctx, input)) != 0)
return (ret);
// extra guard here is just to satisfy GCC 16 static analysis
if (ilen >= 128) {
while (ilen >= 128) {
if ((ret = mbedtls_internal_sha512_process(ctx, input)) != 0)
return (ret);
input += 128;
ilen -= 128;
input += 128;
ilen -= 128;
}
}
if (ilen > 0)