File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ PHP NEWS
15
15
. Fixed bug #69085 (SoapClient's __call() type confusion through
16
16
unserialize()). (Dmitry)
17
17
18
+ - ZIP:
19
+ . Fixed bug #69253 (ZIP Integer Overflow leads to writing past heap
20
+ boundary). (Stas)
21
+
18
22
19 Feb 2015 PHP 5.4.38
19
23
20
24
- Core:
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ _zip_cdir_new(int nentry, struct zip_error *error)
101
101
return NULL ;
102
102
}
103
103
104
- if (( cd -> entry = (struct zip_dirent * )malloc (sizeof (* (cd -> entry ))* nentry ))
104
+ if ( nentry > (( size_t ) -1 )/ sizeof ( * ( cd -> entry )) || ( cd -> entry = (struct zip_dirent * )malloc (sizeof (* (cd -> entry ))* ( size_t ) nentry ))
105
105
== NULL ) {
106
106
_zip_error_set (error , ZIP_ER_MEMORY , 0 );
107
107
free (cd );
You can’t perform that action at this time.
0 commit comments