Fix #4278: Fix nasty range check bug
authorArmin Novak <armin.novak@gmail.com>
Sun, 26 Nov 2017 13:59:37 +0000 (14:59 +0100)
committerArmin Novak <armin.novak@gmail.com>
Sun, 26 Nov 2017 13:59:37 +0000 (14:59 +0100)
channels/rdpsnd/client/rdpsnd_main.c

index fe727ba..ead9f4c 100644 (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;