projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8ce70
)
Fix #4278: Fix nasty range check bug
author
Armin Novak
<armin.novak@gmail.com>
Sun, 26 Nov 2017 13:59:37 +0000
(14:59 +0100)
committer
Armin Novak
<armin.novak@gmail.com>
Sun, 26 Nov 2017 13:59:37 +0000
(14:59 +0100)
channels/rdpsnd/client/rdpsnd_main.c
patch
|
blob
|
history
diff --git
a/channels/rdpsnd/client/rdpsnd_main.c
b/channels/rdpsnd/client/rdpsnd_main.c
index
fe727ba
..
ead9f4c
100644
(file)
--- a/
channels/rdpsnd/client/rdpsnd_main.c
+++ b/
channels/rdpsnd/client/rdpsnd_main.c
@@
-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;