Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148254217
D23094.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
543 B
Referenced Files
None
Subscribers
None
D23094.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D23094: Add stricter checking on mac key lengths.
Attached
Detach File
Event Timeline
Log In to Comment