Re:Memcmp being wrongly stripped like strcmp
by admax88q on Friday October 09, 2020 @12:43PM
(#24731712)
I wonder how many bugs C strings have been responsible for, all because storing a null byte at the end seems more efficient than storing a length up front.
Re:Memcmp being wrongly stripped like strcmp
by userbinator on Saturday October 10, 2020 @03:34PM
(#24741280)
Good example of how a little insecurity is sometimes a good thing.
They also weren't checking padding, so you didn't have to use a real signature with a 00 byte in a convenient place (though I did find one), but rather could just use an all-00 signature, because performing the RSA computation on zero yields zero.