Commit 12c1e067 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

winhttp: Don't reference past the attribute array. Fixes Coverity item 710.

parent 48865c90
......@@ -619,7 +619,7 @@ static BOOL query_headers( request_t *request, DWORD level, LPCWSTR name, LPVOID
}
default:
{
if (attr > sizeof(attribute_table)/sizeof(attribute_table[0]) || !attribute_table[attr])
if (attr >= sizeof(attribute_table)/sizeof(attribute_table[0]) || !attribute_table[attr])
{
FIXME("attribute %u not implemented\n", attr);
return FALSE;
......
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