Mercurial > hg
diff Makefile @ 26591:042344313939
parsers: fix infinite loop or out-of-bound read in fm1readmarkers (issue4888)
The issue4888 was caused by 0-length obsolete marker. If msize is zero,
fm1readmarkers() never ends.
This patch adds several bound checks to fm1readmarker(). Therefore, 0-length
and invalid-size marker should be rejected.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 11 Oct 2015 18:30:47 +0900 |
parents | 05306b9359d3 |
children | c5c7c686d6a6 |