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:
93ad9a2
)
Fixed sign-compare warnings
author
Armin Novak
<armin.novak@thincast.com>
Thu, 7 Feb 2019 13:33:59 +0000
(14:33 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 5 Apr 2019 07:13:24 +0000
(09:13 +0200)
channels/cliprdr/client/cliprdr_main.c
patch
|
blob
|
history
diff --git
a/channels/cliprdr/client/cliprdr_main.c
b/channels/cliprdr/client/cliprdr_main.c
index
2b7622f
..
89e02f5
100644
(file)
--- a/
channels/cliprdr/client/cliprdr_main.c
+++ b/
channels/cliprdr/client/cliprdr_main.c
@@
-239,7
+239,7
@@
static UINT cliprdr_process_clip_caps(cliprdrPlugin* cliprdr, wStream* s,
Stream_Read_UINT16(s, capabilitySetType); /* capabilitySetType (2 bytes) */
Stream_Read_UINT16(s, lengthCapability); /* lengthCapability (2 bytes) */
- if (
lengthCapability < 4 || Stream_GetRemainingLength(s) < lengthCapability - 4
)
+ if (
(lengthCapability < 4) || (Stream_GetRemainingLength(s) < (lengthCapability - 4U))
)
return ERROR_INVALID_DATA;
switch (capabilitySetType)