]> icculus.org git repositories - icculus/xz.git/commit
Improved the memory limitter:
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 25 Jan 2008 17:20:28 +0000 (19:20 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 25 Jan 2008 17:20:28 +0000 (19:20 +0200)
commit7b8fc7e6b501a32a36636dac79ecb57099269005
treea9d78c2381ca24aee9df680485037635b967c7d3
parente0c3d0043da2f670cfdb1abbb3223d5a594ad8db
Improved the memory limitter:
  - Added lzma_memlimit_max() and lzma_memlimit_reached()
    API functions.
  - Added simple estimation of malloc()'s memory usage
    overhead.
  - Fixed integer overflow detection in lzma_memlimit_alloc().
  - Made some white space cleanups and added more comments.

The description of lzma_memlimit_max() in memlimit.h is bad
and should be improved.
src/liblzma/api/lzma/memlimit.h
src/liblzma/common/memory_limitter.c