diff options
author | Jack Lloyd <[email protected]> | 2016-02-13 10:45:59 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-02-13 10:45:59 -0500 |
commit | 3dce8fa3fc4d60746c13a8c2d21f82961eb3b2c0 (patch) | |
tree | c51ea572bea7c081809279eb92c73434ad9eb1fe /.travis.yml | |
parent | 25e2e7880768c14fd22d09ebdd2786f8eb8f500d (diff) |
In compression wrappers add an overflow check before calling malloc
If malloc fails, don't save the size that was attempted. Otherwise a
failing malloc followed by a free(nullptr) would zero a block of
memory equal to the failed allocation starting from the null address.
It's not clear if zlib,bzip2,lzma expect the return of the malloc
function to be zero but LZMA at least seems to read from it before
writing. Zero it.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions