diff options
author | Damien Miller <djm@mindrot.org> | 2014-07-02 07:29:21 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-07-02 07:29:21 +0200 |
commit | 9e01ff28664921ce9b6500681333e42fb133b4d0 (patch) | |
tree | 21116087bd1e9baea33c2ceba33c732c1a043846 /sshbuf.c | |
parent | - djm@cvs.openbsd.org 2014/06/24 02:21:01 (diff) | |
download | openssh-9e01ff28664921ce9b6500681333e42fb133b4d0.tar.xz openssh-9e01ff28664921ce9b6500681333e42fb133b4d0.zip |
- deraadt@cvs.openbsd.org 2014/06/25 14:16:09
[sshbuf.c]
unblock SIGSEGV before raising it
ok djm
Diffstat (limited to 'sshbuf.c')
-rw-r--r-- | sshbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf.c,v 1.1 2014/04/30 05:29:56 djm Exp $ */ +/* $OpenBSD: sshbuf.c,v 1.2 2014/06/25 14:16:09 deraadt Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -53,6 +53,7 @@ sshbuf_check_sanity(const struct sshbuf *buf) buf->off > buf->size)) { /* Do not try to recover from corrupted buffer internals */ SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR")); + signal(SIGSEGV, SIG_DFL); raise(SIGSEGV); return SSH_ERR_INTERNAL_ERROR; } |