Commit fbfc724d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

quartz: Avoid reading past the end of a buffer (Valgrind).

parent 6243093f
......@@ -425,7 +425,7 @@ static int add_data(struct Vector *v, const void *pData, int size)
static int find_data(const struct Vector *v, const void *pData, int size)
{
int index;
for (index = 0; index < v->current; index++)
for (index = 0; index + size <= v->current; index++)
if (!memcmp(v->pData + index, pData, size))
return index;
/* not found */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment