Commit 877a628a authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

wininet: Avoid buffer overrun in alloc_object.

parent 5840ea47
......@@ -152,7 +152,7 @@ void *alloc_object(object_header_t *parent, const object_vtbl_t *vtbl, size_t si
handle_table[handle] = ret;
ret->valid_handle = TRUE;
while(handle_table[next_handle] && next_handle < handle_table_size)
while(next_handle < handle_table_size && handle_table[next_handle])
next_handle++;
}
......
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