Andreas Schneider
|
3d390cf6ff
|
pki: Make sure the key_buf is null terminated.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
e04dc45f20
|
misc: Use a fixed buffer for getenv().
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
de34a64895
|
poll: Fix sizeof in ssh_poll_ctx_resize().
sizeof(ssh_poll_handle *) is to be equal to sizeof(ssh_poll_handle), but
this is not a portable assumption.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
46f22576b0
|
legacy: Use snprintf instead of sprintf.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
2f8ddc6e65
|
dh: Don't use strcat for ssh_get_hexa().
This is just hardening the code.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
b1287cd946
|
server: Use strncat instead of strcat.
This is just hardening the code.
Found by Coverity.
|
2012-10-12 14:45:54 +02:00 |
|
Andreas Schneider
|
a660177a6e
|
misc: Use strncpy instead of strcat.
This is just hardening the code.
Found by Coverity.
|
2012-10-12 14:45:36 +02:00 |
|
Andreas Schneider
|
0a4ea19982
|
pki: Fix a possible null pointer dereference.
Found by Coverity.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
0bf2dd81e6
|
messages: Fix memory leaks in user request callback.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
ecb6cfd053
|
connect: Don't leak the addressinfo on error.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
ba220adb84
|
connect: Don't leak the file descriptor on error.
Found by Coverity.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
802e4133cb
|
session: Don't leak memory in ssh_send_debug().
Found by Coverity.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
dde3deb9ea
|
channels: Don't leak memory in channel_rcv_request callback.
Found by Coverity.
|
2012-10-12 08:07:02 +02:00 |
|
Andreas Schneider
|
66045054f4
|
auth: Don't leak memory on error in info request callback.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
96e0301b58
|
dh: Don't leak 'f' on error.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
029d165b61
|
legacy: Don't leak the key struct on error.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
4e7736444f
|
server: Don't leak memory on calling ssh_string_from_char().
Also check the return values.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
7254390ac2
|
pki: Don't leak the signature on error paths.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
188c596803
|
sftp: Don't leak owner and group in sftp_parse_attr_4.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
0295301928
|
known_hosts: Don't leak memory in ssh_write_knownhost error paths.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
a6e7d1f255
|
agent: Fix some memory leaks in error paths.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
f2c183b413
|
include: Fix an include recursion.
It includes itself: libssh.h -> legacy.h -> libssh.h.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
5e8e21d106
|
options: Check return code of ssh_iterator_value.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
bcc00eec9b
|
kex: Don't compare an array to null.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
53008fb5d4
|
string: Don't compare an array to null.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
9338fb8e5e
|
message: Set correct request type.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
ec5b4d377f
|
sftpserver: Add missing break statement.
Found by Coverity.
|
2012-10-12 08:07:01 +02:00 |
|
Andreas Schneider
|
6352b3d93a
|
server: Fix for loop to free server methods.
Found by Coverity.
|
2012-10-12 08:06:55 +02:00 |
|
Andreas Schneider
|
b8de9e75d0
|
client: If session is NULL we can't set an error.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
ec56d1d453
|
match: Don't dereference 's' directly.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
87036839f9
|
example: Simplify auth_callback of the client.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
131a0de32e
|
auth: Make error handling code reachable again.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
3e93836e8b
|
pki: Make error handling code reachable again.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
21db70888a
|
socket: Check return value of buffer function.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
bb2848de5a
|
channels: Check return values of buffer functions.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
6acce40a28
|
scp: Check return value of ssh_channel_poll.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
41269874f5
|
packet: Check return values of buffer functions.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
9abe591843
|
client: Check return value of ssh_handle_packets_termination.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
114cc51a10
|
pcap: Check return codes of buffer_add_* functions.
Found by Coverity.
|
2012-10-09 11:09:34 +02:00 |
|
Andreas Schneider
|
9fe47da903
|
torture: Fix keyboard interactive authentication.
|
2012-10-09 10:11:55 +02:00 |
|
Andreas Schneider
|
362be13156
|
tests: Make sure the array is null terminated.
|
2012-10-07 23:23:33 +02:00 |
|
Andreas Schneider
|
e17fcd70f9
|
torture: Use new userauth functions.
|
2012-10-07 23:21:17 +02:00 |
|
Andreas Schneider
|
5f0f334d1c
|
pki: Don't leak memory in pubkey to blob.
|
2012-10-07 22:36:06 +02:00 |
|
Andreas Schneider
|
996b7cae26
|
pki: Make sure we don't double free pointers.
|
2012-10-07 22:35:33 +02:00 |
|
Andreas Schneider
|
b219d1890c
|
tests: Don't leak memory in options test.
|
2012-10-07 22:15:20 +02:00 |
|
Andreas Schneider
|
bfa568e448
|
pki: Check for no memory available calling ssh_key_new().
|
2012-10-07 22:04:58 +02:00 |
|
Andreas Schneider
|
ff53664f54
|
sftp: Fix a possible null pointer dereference in sftp_async_read.
|
2012-10-07 22:03:35 +02:00 |
|
Andreas Schneider
|
b811b89f57
|
channels1: Fix severa possible null pointer dereferences.
|
2012-10-07 22:01:48 +02:00 |
|
Andreas Schneider
|
3db2ac41eb
|
pki: Handle error of pki_import_pubkey_buffer() correctly.
|
2012-10-07 21:53:37 +02:00 |
|
Andreas Schneider
|
ca74d91d50
|
example: Clear the password.
|
2012-10-07 21:49:45 +02:00 |
|