Damien Miller
|
3f69ecb299
|
activate leakmalloc support when LEAKMALLOC make variable is set
(mostly by markus@)
|
2012-03-15 13:27:43 +11:00 |
|
Damien Miller
|
dfecc980bc
|
Merge branch 'master' of /home/djm/cvs/leakmalloc into merge-leakmalloc
|
2012-03-15 12:24:27 +11:00 |
|
Damien Miller
|
6161ebb123
|
move everything into subdirectory in preparation for merge to libopenssh
|
2012-03-15 12:23:01 +11:00 |
|
Damien Miller
|
4e552cbf80
|
adjust for new paths
|
2012-03-07 15:34:41 +11:00 |
|
Damien Miller
|
70606ded9d
|
make into a proper regress test
|
2012-03-07 14:45:38 +11:00 |
|
Damien Miller
|
de82036ecf
|
rename example.c => leaky.c
|
2012-03-07 14:45:00 +11:00 |
|
Damien Miller
|
e41307b545
|
add some options via LEAKMALLOC_OPTIONS environment
X = exit with status 99 on leaks
Q = quiet (useful with X)
D = dump leaks to leakmalloc.out instead of stdout
|
2012-03-07 14:43:11 +11:00 |
|
Damien Miller
|
fed32729da
|
reorg directory structure
|
2012-03-07 14:42:34 +11:00 |
|
Damien Miller
|
989d187309
|
improve summary
|
2012-03-07 14:39:30 +11:00 |
|
Markus Friedl
|
077cbaa855
|
don't leak the test keys and the kex after deserialize
|
2012-03-07 00:26:57 +01:00 |
|
Markus Friedl
|
9fb8cdc7bd
|
free the session id and version strings in kex_free()
|
2012-03-07 00:26:56 +01:00 |
|
Markus Friedl
|
faaf51919a
|
free the internal state in ssh_packet_close()
|
2012-03-07 00:26:56 +01:00 |
|
Markus Friedl
|
9e7303d250
|
don't leak the hostkey-list in ssh_free() ...
as well as the pub-key variant of the private hostkey
|
2012-03-07 00:26:55 +01:00 |
|
Damien Miller
|
4a3c3a7baf
|
fix some kex-related leaks
|
2012-03-07 00:26:54 +01:00 |
|
Damien Miller
|
06cbafed01
|
add a "quiet" mode, activated by -q, that prints nothing to stdout
|
2012-03-07 00:26:54 +01:00 |
|
Damien Miller
|
bdf8ba65b2
|
memory leaks in fingerprint tests
|
2012-03-07 00:26:53 +01:00 |
|
Damien Miller
|
52f8dc5221
|
memory leak in test
|
2012-03-07 00:26:53 +01:00 |
|
Damien Miller
|
4364319ce2
|
oops, sshbuf was never freeing its buffer memory
|
2012-03-07 00:26:52 +01:00 |
|
Damien Miller
|
b921712025
|
centralise error handling for sshkey_from_blob, fix leak
|
2012-03-07 00:26:51 +01:00 |
|
Damien Miller
|
bac1cfe229
|
make output useful as vim error file, based on patch from markus@
|
2012-03-07 08:24:20 +11:00 |
|
Damien Miller
|
dadde6f62b
|
print totals
|
2012-03-05 17:51:14 +11:00 |
|
Damien Miller
|
4254638087
|
better comment
|
2012-03-05 16:50:27 +11:00 |
|
Damien Miller
|
f9e93c4b64
|
README
|
2012-03-05 15:08:59 +11:00 |
|
Damien Miller
|
9570b61230
|
add example
|
2012-03-05 15:04:45 +11:00 |
|
Damien Miller
|
776483fdf5
|
fix tracking bugs, kludge to dump backtrace on error
|
2012-03-05 14:44:45 +11:00 |
|
Damien Miller
|
f07479d57c
|
ensure malloc() and friends are in the namespace
|
2012-03-05 14:44:32 +11:00 |
|
Damien Miller
|
2d05fae6fe
|
sort by number of leaks, then by bytes
|
2012-03-05 14:44:09 +11:00 |
|
Damien Miller
|
b9fc9037a9
|
tool to resolve leak dumps to nicer reports using addr2line
|
2012-03-05 13:23:31 +11:00 |
|
Damien Miller
|
242ddf1724
|
simple leak tracer, using libexecinfo
|
2012-03-05 12:11:29 +11:00 |
|
Markus Friedl
|
becc57491f
|
ssh_set_app_data(): attach application specific data to 'struct ssh'
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
a9b5c1feef
|
replace ssh_packet_payload() with sshpkt_ptr(); adapt ssh_packet_payload()
sshpkt_ptr() has similar argument/return types as sshbuf_ptr()
u_int -> size_t, void * -> u_char.
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
b8e9499508
|
ssh_api.h: u_int -> size_t
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
1ba4f6ae7d
|
ssh-proxy: use sshbuf_dump() and print hex-dump of forwarded packet
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
980b0a0f16
|
ssh-proxy: delay session close until the output is flushed
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
fbeeedc2c2
|
print protocol mismatch message if version exchange fails
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
6e99587584
|
remove redundant ssh->compat assignment
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
e9505646d7
|
terminate the buffer for the remote protocol version; interop w/JSch
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
f7ecade3a0
|
make sshbuf_get_stringb() a public API
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
cbf6120318
|
add a kex unit test
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
ef966564df
|
zero *kexp in kex_from_blob()
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
cfa5a3fa83
|
kex_from_blob(): don't leak the kex on error
|
2012-03-04 21:19:24 +01:00 |
|
Markus Friedl
|
38c47bf56b
|
add alternate Makefile for ssh-proxy (w/o linking libssh.a)
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
43a81ccd73
|
make get_remote_ipaddr() per-connection and move it to ssh_remote_ipaddr()
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
eb30492538
|
cipher-bf1.c and mac.c no longer use log.h/xmalloc.h
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
b039f2339c
|
don't make packet.c depend on the channels.c code
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
95ba2fbfe0
|
add reallocn() (==xrealloc w/o fatal), use it in deattack.c
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
91f929fc6f
|
de-fatal deattack and use sshbuf.h instead of misc.c
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
06f25e6dee
|
de-fatal ciphers
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
7d063a0c7d
|
de-fatal addrmatch.c
|
2012-03-04 21:19:23 +01:00 |
|
Markus Friedl
|
f42361df22
|
de-fatal mac.c
|
2012-03-04 21:19:23 +01:00 |
|