httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r307251 - /httpd/mod_mbox/trunk/module-2.0/mbox_cache.c
Date Sat, 08 Oct 2005 03:52:56 GMT
Author: pquerna
Date: Fri Oct  7 20:52:53 2005
New Revision: 307251

URL: http://svn.apache.org/viewcvs?rev=307251&view=rev
Log:
Make sure the data we are copying from is big enough.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mbox_cache.c

Modified: httpd/mod_mbox/trunk/module-2.0/mbox_cache.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mbox_cache.c?rev=307251&r1=307250&r2=307251&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mbox_cache.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mbox_cache.c Fri Oct  7 20:52:53 2005
@@ -243,7 +243,7 @@
 
     rv = apr_dbm_fetch(mli->db, key, &nv);
 
-    if (!rv) {
+    if (rv == APR_SUCCESS && nv.dsize == sizeof(int)) {
         memcpy(count, nv.dptr, sizeof(int));
     }
     else {



Mime
View raw message