shmcb_cyclic_cton_memcpy): Fix potential shmcb segfault for small
cache sizes.
PR: 27751
Submitted by: Geoff Thorpe <geoff geoffthorpe.net>
Reviewed by: Madhusudan Mathihalli, Joe Orton, Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103818
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.50
+ *) mod_ssl: Fix a potential segfault in the 'shmcb' session cache for
+ small cache sizes. PR 27751. [Geoff Thorpe <geoff geoffthorpe.net>]
+
*) Remove 2Gb log file size restriction on some 32-bit platforms.
PR 13511. [Joe Orton]
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/06/01 15:30:15 $]
+Last modified at [$Date: 2004/06/01 20:27:10 $]
Release:
build/rpm/httpd.spec.in: r1.5
+1: minfrin, nd
- *) mod_ssl: Fix potential SEGV in 'shmcb' session cache.
- modules/ssl/ssl_scache_shmcb.c: r1.26
- +1: madhum, jorton, trawick
-
*) mod_cgi: Handle stderr output during script execution
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/generators/mod_cgi.c?r1=1.160&r2=1.163
PR: 22030, 18348
unsigned int dest_offset,
unsigned char *src, unsigned int src_len)
{
+ /* Cover the case that src_len > buf_size */
+ if (src_len > buf_size)
+ src_len = buf_size;
+
/* Can it be copied all in one go? */
if (dest_offset + src_len < buf_size)
/* yes */
unsigned int src_offset,
unsigned int src_len)
{
+ /* Cover the case that src_len > buf_size */
+ if (src_len > buf_size)
+ src_len = buf_size;
+
/* Can it be copied all in one go? */
if (src_offset + src_len < buf_size)
/* yes */