]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: two defensive changes from Tobias Stoeckmann via GHPR287
authordjm@openbsd.org <djm@openbsd.org>
Fri, 8 Apr 2022 04:40:40 +0000 (04:40 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 11 Apr 2022 23:35:31 +0000 (09:35 +1000)
commit4673fa8f2be983f2f88d5afd754adb1a2a39ec9e
tree4e409b3068c140d54d4188bed2246f5d390f0953
parent26eef015e2d2254375e13afaaf753b78932b1bf5
upstream: two defensive changes from Tobias Stoeckmann via GHPR287

enforce stricter invarient for sshbuf_set_parent() - never allow
a buffer to have a previously-set parent changed.

In sshbuf_reset(), if the reallocation fails, then zero the entire
buffer and not the (potentially smaller) default initial alloc size.

OpenBSD-Commit-ID: 14583203aa5d50ad38d2e209ae10abaf8955e6a9
sshbuf.c