Skip to content

Commit

Permalink
Fix bug #67716 - Segfault in cdf.c
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and smalyshev committed Aug 15, 2014
1 parent eab4264 commit 49387b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ PHP NEWS
. Fixed bug #47358 (glob returns error, should be empty array()). (Pierre)

- OpenSSL:
. Fixed bug #41631 (socket timeouts not honored in blocking SSL reads)
. Fixed bug #41631 (socket timeouts not honored in blocking SSL reads).
(Daniel Lowrey).

- Date:
. Fixed bug #66091 (memory leaks in DateTime constructor) (Tjerk).
. Fixed bug #66091 (memory leaks in DateTime constructor). (Tjerk).

?? ??? 2014, PHP 5.4.32

Expand All @@ -21,11 +21,12 @@ PHP NEWS

- Fileinfo:
. Fixed bug #67705 (extensive backtracking in rule regular expression).
(CVE-2014-3538) (Remi)
(CVE-2014-3538). (Remi)
. Fixed bug #67716 (Segfault in cdf.c). (CVE-2014-3587) (Remi)

- GD:
. Fixed bug #66901 (php-gd 'c_color' NULL pointer dereference).
(CVE-2014-2497) (Remi)
(CVE-2014-2497). (Remi)

- Milter:
. Fixed bug #67715 (php-milter does not build and crashes randomly). (Mike)
Expand All @@ -40,7 +41,7 @@ PHP NEWS
with control-c). (Dmitry Saprykin, Johannes)

- Sessions:
. Fixed missing type checks in php_session_create_id (Yussuf Khalil, Stas).
. Fixed missing type checks in php_session_create_id. (Yussuf Khalil, Stas).

- SPL:
. Fixed bug #67539 (ArrayIterator use-after-free due to object change during
Expand Down
2 changes: 1 addition & 1 deletion ext/fileinfo/libmagic/cdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,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;
}
Expand Down

0 comments on commit 49387b3

Please sign in to comment.