On 10 May 2017 at 15:54, Józef Kucia jkucia@codeweavers.com wrote:
- if (FAILED(hr = shader_signature_calculate_strings_length(&desc->input_signature, &len)))
return hr;
- total = len;
- if (FAILED(hr = shader_signature_calculate_strings_length(&desc->output_signature, &len)))
return hr;
- total += len;
- if (FAILED(hr = shader_signature_calculate_strings_length(&desc->patch_constant_signature, &len)))
return hr;
- total += len;
It's perhaps a fairly theoretical concern, but I think you can still make "total" overflow here.