diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-15 00:04:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-15 00:04:54 +0000 |
commit | f1988b80b991e005f66646c828710f53c437b6a7 (patch) | |
tree | 6b0c7ed0f3ecd6f4622b8279072b6a7866d485f5 | |
parent | 4b50f938b50ac429b0df30943a3e778c198c7a38 (diff) |
constrain to less than 64K until a hifn driver bug is fixed
-rw-r--r-- | sys/crypto/cryptodev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c index 5fb0225c6bb..3add478aaa8 100644 --- a/sys/crypto/cryptodev.c +++ b/sys/crypto/cryptodev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.c,v 1.9 2001/06/11 22:44:03 deraadt Exp $ */ +/* $OpenBSD: cryptodev.c,v 1.10 2001/06/15 00:04:53 deraadt Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -268,7 +268,7 @@ crypto_op(struct csession *cse, struct crypt_op *cop, struct proc *p) struct cryptodesc *crde = NULL, *crda = NULL; int i, error; - if (cop->len > 64*1024) + if (cop->len > 64*1024-4) return (E2BIG); bzero(&cse->uio, sizeof(cse->uio)); |