mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-17 22:36:53 +00:00
- deraadt@cvs.openbsd.org 2014/06/25 14:16:09
[sshbuf.c] unblock SIGSEGV before raising it ok djm
This commit is contained in:
parent
1845fe6bda
commit
9e01ff2866
@ -54,6 +54,10 @@
|
|||||||
[scp.c]
|
[scp.c]
|
||||||
when copying local->remote fails during read, don't send uninitialised
|
when copying local->remote fails during read, don't send uninitialised
|
||||||
heap to the remote end. Reported by Jann Horn
|
heap to the remote end. Reported by Jann Horn
|
||||||
|
- deraadt@cvs.openbsd.org 2014/06/25 14:16:09
|
||||||
|
[sshbuf.c]
|
||||||
|
unblock SIGSEGV before raising it
|
||||||
|
ok djm
|
||||||
|
|
||||||
20140618
|
20140618
|
||||||
- (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
|
- (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
|
||||||
|
3
sshbuf.c
3
sshbuf.c
@ -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
|
* Copyright (c) 2011 Damien Miller
|
||||||
*
|
*
|
||||||
@ -53,6 +53,7 @@ sshbuf_check_sanity(const struct sshbuf *buf)
|
|||||||
buf->off > buf->size)) {
|
buf->off > buf->size)) {
|
||||||
/* Do not try to recover from corrupted buffer internals */
|
/* Do not try to recover from corrupted buffer internals */
|
||||||
SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR"));
|
SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR"));
|
||||||
|
signal(SIGSEGV, SIG_DFL);
|
||||||
raise(SIGSEGV);
|
raise(SIGSEGV);
|
||||||
return SSH_ERR_INTERNAL_ERROR;
|
return SSH_ERR_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user