diff options
author | 2011-07-22 08:39:21 +0000 | |
---|---|---|
committer | 2011-07-22 08:39:21 +0000 | |
commit | 71c8e288dab7821730b2bc903f5a16578351c62a (patch) | |
tree | 698a2ab7fd52b6694e137a5fc1f346ac4ede394f /dev-php/pecl-apc/files | |
parent | Initial import. (diff) | |
download | historical-71c8e288dab7821730b2bc903f5a16578351c62a.tar.gz historical-71c8e288dab7821730b2bc903f5a16578351c62a.tar.bz2 historical-71c8e288dab7821730b2bc903f5a16578351c62a.zip |
Moved from dev-php5/pecl-apc
Package-Manager: portage-2.1.9.49/cvs/Linux x86_64
RepoMan-Options: --force
Diffstat (limited to 'dev-php/pecl-apc/files')
-rw-r--r-- | dev-php/pecl-apc/files/pecl-apc-3.0.16-CVE-2008-1488.patch | 12 | ||||
-rw-r--r-- | dev-php/pecl-apc/files/pecl-apc-3.0.16-apc_set_signals.patch | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-php/pecl-apc/files/pecl-apc-3.0.16-CVE-2008-1488.patch b/dev-php/pecl-apc/files/pecl-apc-3.0.16-CVE-2008-1488.patch new file mode 100644 index 000000000000..7ece786c4c25 --- /dev/null +++ b/dev-php/pecl-apc/files/pecl-apc-3.0.16-CVE-2008-1488.patch @@ -0,0 +1,12 @@ +--- apc.c.old 2008-03-26 19:22:02.000000000 +0100 ++++ apc.c 2008-03-26 19:22:23.000000000 +0100 +@@ -331,7 +331,7 @@ + /* not: [no active file] or no path */ + memcpy(fileinfo->fullpath, exec_fname, exec_fname_length); + fileinfo->fullpath[exec_fname_length] = DEFAULT_SLASH; +- strcpy(fileinfo->fullpath +exec_fname_length +1, filename); ++ strlcpy(fileinfo->fullpath +exec_fname_length +1, filename,sizeof(fileinfo->fullpath)-exec_fname_length-1); + /* apc_wprint("filename: %s, exec_fname: %s, fileinfo->fullpath: %s", filename, exec_fname, fileinfo->fullpath); */ + if (apc_stat(fileinfo->fullpath, &fileinfo->st_buf) == 0) { + found = 1; + diff --git a/dev-php/pecl-apc/files/pecl-apc-3.0.16-apc_set_signals.patch b/dev-php/pecl-apc/files/pecl-apc-3.0.16-apc_set_signals.patch new file mode 100644 index 000000000000..0e12918a24ff --- /dev/null +++ b/dev-php/pecl-apc/files/pecl-apc-3.0.16-apc_set_signals.patch @@ -0,0 +1,11 @@ +--- APC-3.0.16/php_apc.c.orig 2007-12-26 23:51:32.000000000 +0100 ++++ APC-3.0.16/php_apc.c 2008-01-04 23:34:30.000000000 +0100 +@@ -300,7 +300,7 @@ + apc_request_init(TSRMLS_C); + + #if HAVE_SIGACTION +- apc_set_signals(); ++ apc_set_signals(TSRMLS_C); + #endif + } + return SUCCESS; |