mirror of
https://github.com/reactos/wine.git
synced 2025-02-25 23:35:31 +00:00
wininet: Avoid buffer overrun in alloc_object.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5840ea47e6
commit
877a628aa6
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user