Page MenuHomeFreeBSD

D23094.diff
No OneTemporary

D23094.diff

Index: head/sys/opencrypto/cryptodev.c
===================================================================
--- head/sys/opencrypto/cryptodev.c
+++ head/sys/opencrypto/cryptodev.c
@@ -585,8 +585,8 @@
if (thash) {
cria.cri_alg = thash->type;
cria.cri_klen = sop->mackeylen * 8;
- if (thash->keysize != 0 &&
- sop->mackeylen > thash->keysize) {
+ if (sop->mackeylen > thash->keysize ||
+ sop->mackeylen < 0) {
CRYPTDEB("invalid mac key length");
error = EINVAL;
SDT_PROBE1(opencrypto, dev, ioctl, error,

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 17, 7:52 PM (8 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29845831
Default Alt Text
D23094.diff (543 B)

Event Timeline