Browse Source

Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix bug #67716 - Segfault in cdf.c
  Fix bug #67716 - Segfault in cdf.c
pull/745/head
Stanislav Malyshev 12 years ago
parent
commit
23122ba69c
  1. 2
      ext/fileinfo/libmagic/cdf.c

2
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;
}

Loading…
Cancel
Save