diff options
author | djm <djm> | 2011-12-18 23:52:50 +0000 |
---|---|---|
committer | djm <djm> | 2011-12-18 23:52:50 +0000 |
commit | 0f0c522a19463bd671eff7990ffe663b9722cd3e (patch) | |
tree | 9a6dd76dca53a71b10d47d312afea37387ce41f9 /auth2.c | |
parent | 134b601429b455534eecc5f5fc038eca9fa4549c (diff) | |
download | openssh-0f0c522a19463bd671eff7990ffe663b9722cd3e.tar.gz |
- djm@cvs.openbsd.org 2011/12/07 05:44:38
[auth2.c dh.c packet.c roaming.h roaming_client.c roaming_common.c]
fix some harmless and/or unreachable int overflows;
reported Xi Wang, ok markus@
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: auth2.c,v 1.123 2011/03/10 02:52:57 djm Exp $ */ +/* $OpenBSD: auth2.c,v 1.124 2011/12/07 05:44:38 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -113,7 +113,7 @@ auth2_read_banner(void) close(fd); return (NULL); } - if (st.st_size > 1*1024*1024) { + if (st.st_size <= 0 || st.st_size > 1*1024*1024) { close(fd); return (NULL); } |