vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c in rbnacl-libsodium-1.0.13 vs vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c in rbnacl-libsodium-1.0.15

- old
+ new

@@ -81,10 +81,10 @@ ge_p3 A; ge_p3 R; ge_p3 cs3; *mlen_p = 0; - if (smlen < 64 || smlen > SIZE_MAX) { + if (smlen < 64 || smlen - 64 > crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX) { return -1; } mlen = smlen - 64; if (sm[smlen - 1] & 224) { return -1;