diff options
| author | Stanislav Malyshev <stas@php.net> | 2014-08-14 17:22:15 -0700 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2014-08-14 17:22:15 -0700 |
| commit | 65a840072ba7773c1cf5f1978a9a58416290b67a (patch) | |
| tree | 886f6988aed0b14957d5e40f479d9c6ed015853a | |
| parent | 41177c1b65340a97ea5d0266bb506af3e77ffbf4 (diff) | |
| parent | 23122ba69ce628769bd61f7f0aaecdba203fee26 (diff) | |
| download | php-git-65a840072ba7773c1cf5f1978a9a58416290b67a.tar.gz | |
Merge branch 'PHP-5.6'
* PHP-5.6:
Fix bug #67716 - Segfault in cdf.c
Fix bug #67716 - Segfault in cdf.c
| -rw-r--r-- | ext/fileinfo/libmagic/cdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fileinfo/libmagic/cdf.c b/ext/fileinfo/libmagic/cdf.c index ad285cfe18..c86763faa0 100644 --- a/ext/fileinfo/libmagic/cdf.c +++ b/ext/fileinfo/libmagic/cdf.c @@ -823,7 +823,7 @@ cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h, q = (const uint8_t *)(const void *) ((const char *)(const void *)p + ofs - 2 * sizeof(uint32_t)); - if (q > e) { + if (q < p || q > e) { DPRINTF(("Ran of the end %p > %p\n", q, e)); goto out; } |
