Revision: 14666 Author: adrian.chadd Date: Sun May 16 03:31:39 2010 Log: Fix bounds issue brought up in the test suite.
http://code.google.com/p/lusca-cache/source/detail?r=14666 Modified: /branches/LUSCA_HEAD/lib/Vector.c ======================================= --- /branches/LUSCA_HEAD/lib/Vector.c Fri Mar 26 06:11:29 2010 +++ /branches/LUSCA_HEAD/lib/Vector.c Sun May 16 03:31:39 2010 @@ -53,7 +53,7 @@ void * vector_get_real(const vector_t *v, int offset) { - if (offset > v->used_count) + if (offset >= v->used_count) return NULL; if (v->data == NULL) return NULL; -- 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.
