Merge pull request #4280 from akallabeth/snd_parser_fix
Fix #4278: Fix nasty range check bug
This commit is contained in:
commit
640b3e1994
@ -921,7 +921,7 @@ static UINT rdpsnd_process_addin_args(rdpsndPlugin* rdpsnd, ADDIN_ARGV* args)
|
||||
{
|
||||
unsigned long val = strtoul(arg->Value, NULL, 0);
|
||||
|
||||
if ((errno != 0) || (val < INT32_MIN) || (val > INT32_MAX))
|
||||
if ((errno != 0) || (val > INT32_MAX))
|
||||
return CHANNEL_RC_INITIALIZATION_ERROR;
|
||||
|
||||
rdpsnd->latency = val;
|
||||
|
Loading…
Reference in New Issue
Block a user