winhttp: Don't reference past the attribute array. Fixes Coverity item 710.
This commit is contained in:
parent
48865c9064
commit
12c1e067c6
|
@ -619,7 +619,7 @@ static BOOL query_headers( request_t *request, DWORD level, LPCWSTR name, LPVOID
|
||||||
}
|
}
|
||||||
default:
|
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);
|
FIXME("attribute %u not implemented\n", attr);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue