commit | 4d97ed92b27095db04273ab33a69f4228c6c6474 | [log] [tgz] |
---|---|---|
author | Salvador FandiƱo <sfandino-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> | Sun Aug 23 20:49:01 2015 +0200 |
committer | Daniel Stenberg <daniel@haxx.se> | Tue Sep 29 09:48:48 2015 +0200 |
tree | 17b6d362aba2024b0154190dd59b05363b04b9ec | |
parent | fb432f3f783bdbfdcb5b99a2cdb8e10ef8f6ae3f [diff] |
userauth: Fix off by one error when reading public key file After reading the public key from file the size was incorrectly decremented by one. This was usually a harmless error as the last character on the public key file is an unimportant EOL. But if due to some error the public key file is empty, the public key size becomes (uint)(0 - 1), resulting in an unrecoverable out of memory error later. Signed-off-by: Salvador Fandi??o <sfandino-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>