You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/10/08 05:52:56 UTC

svn commit: r307251 - /httpd/mod_mbox/trunk/module-2.0/mbox_cache.c

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 {