mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -05:00
Change sensitive strbufs/sgrowarrays to the new _nm version.
The _nm strategy is slower, so I don't want to just change everything over no matter what its contents. In this pass I've tried to catch everything that holds the _really_ sensitive things like passwords, private keys and session keys.
This commit is contained in:
@ -615,7 +615,7 @@ void zlib_compress_block(ssh_compressor *sc,
|
||||
bool in_block;
|
||||
|
||||
assert(!out->outbuf);
|
||||
out->outbuf = strbuf_new();
|
||||
out->outbuf = strbuf_new_nm();
|
||||
|
||||
/*
|
||||
* If this is the first block, output the Zlib (RFC1950) header
|
||||
@ -955,7 +955,7 @@ bool zlib_decompress_block(ssh_decompressor *dc,
|
||||
};
|
||||
|
||||
assert(!dctx->outblk);
|
||||
dctx->outblk = strbuf_new();
|
||||
dctx->outblk = strbuf_new_nm();
|
||||
|
||||
while (len > 0 || dctx->nbits > 0) {
|
||||
while (dctx->nbits < 24 && len > 0) {
|
||||
|
Reference in New Issue
Block a user