Merge pull request #4280 from akallabeth/snd_parser_fix

Fix #4278: Fix nasty range check bug
This commit is contained in:
Bernhard Miklautz 2017-11-27 10:06:30 +01:00 committed by GitHub
commit 640b3e1994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;