Revision: 14609
Author: adrian.chadd
Date: Sat Apr 17 20:50:23 2010
Log: Fix crash in the ASN code.


http://code.google.com/p/lusca-cache/source/detail?r=14609

Modified:
 /branches/LUSCA_HEAD/src/asn.c

=======================================
--- /branches/LUSCA_HEAD/src/asn.c      Sat Jan 17 12:15:04 2009
+++ /branches/LUSCA_HEAD/src/asn.c      Sat Apr 17 20:50:23 2010
@@ -255,7 +255,7 @@
        asStateFree(asState);
        return;
     }
-    assert((nr.offset + size) < SM_PAGE_SIZE);
+    assert((nr.offset + size) <= SM_PAGE_SIZE);
     memcpy(buf, nr.node->data + nr.offset, size);
     stmemNodeUnref(&nr);

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to