Re:OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-1...
by wahern on Friday November 20, 2026 @02:33AM
(#50571355)
From a brief look, I'd say there were several wrong turns made that led to CVE-2026-123007.
For why I think it's unrealistic to go all-in on signed integers in C, it's because sizeof is unsigned, and most APIs dealing with lengths use size_t, and there are lot of pitfalls when mixing signed and unsigned types.
But I agree that there's a good case for using signed for the task behind that CVE. As I said, there are compelling reasons. But OpenSSL is a case study in the pitfalls with mixing signed and unsigned in C code.
For why I think it's unrealistic to go all-in on signed integers in C, it's because sizeof is unsigned, and most APIs dealing with lengths use size_t, and there are lot of pitfalls when mixing signed and unsigned types.
But I agree that there's a good case for using signed for the task behind that CVE. As I said, there are compelling reasons. But OpenSSL is a case study in the pitfalls with mixing signed and unsigned in C code.