pcre: Improve sanity check in read_repeat_counts()
authorFabian Keil <fk@fabiankeil.de>
Sun, 8 May 2016 10:48:09 +0000 (10:48 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 8 May 2016 10:48:09 +0000 (10:48 +0000)
commit00e2e09741f51b625dc4c67e7d0090241871c940
treebfd835508c08d4d3253444dddd6ec28999554704
parent67015baf0fede8022e1109e4398f3da027fcca5e
pcre: Improve sanity check in read_repeat_counts()

While it supposedly was 'paranoid' already, it actually
missed most of the invalid values which could cause buffer
overflows later on.

Found with afl-fuzz and ASAN.
Not considered a security issue as the input is trusted.
pcre/pcre.c