Description
CHMLib through 2bef8d0, as used in SumatraPDF and other products, has a chm_lib.c _chm_decompress_block integer overflow. There is a resultant heap-based buffer overflow in _chm_fetch_bytes.
Problem types
CWE-190 Integer Overflow or Wraparound
Product status
Any version
References
drive.google.com/...q7Szzg5RsH-eRwZ6OyuSozl/view?usp=sharing
drive.google.com/...q7Szzg5RsH-eRwZ6OyuSozl/view?usp=sharing
drive.google.com/...oJz2VQ1Qu9ObPVQVom9T9H_/view?usp=sharing
github.com/...3ec7d88a8de6fd9f0513ea42ac0fa21f/src/chm_lib.c
github.com/...ommit/08179946a745cf1605e4b9670942ec1a6e1f4c5d