summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2014-09-27 01:58:38 -0700
committerAndreas Schneider <asn@cryptomilk.org>2014-10-02 08:27:05 +0200
commit7edbedf0dd21657f5aefd0db5cb212330b8b2355 (patch)
tree7634bdc47c69c249d412b45e4ce70918db58ccf5 /include
parentaf25c5e668fa817521496ac2278127b516f219d3 (diff)
downloadlibssh-7edbedf0dd21657f5aefd0db5cb212330b8b2355.tar.gz
libssh-7edbedf0dd21657f5aefd0db5cb212330b8b2355.tar.xz
libssh-7edbedf0dd21657f5aefd0db5cb212330b8b2355.zip
pki: fail when pubkey buffer length is not ED25519_PK_LEN
Fail fast in 'pki_import_pubkey_buffer' for the ED25519 case if a buffer sized ED25519_PK_LEN can not be retrieved. Before, the 'memcpy' could have read beyond the bounds of 'ssh_string_data(pubkey)'. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions