projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56686d7
)
coverity 83682 suspicous signed bytewise reassembly
author
Andy Green
<andy.green@linaro.org>
Sun, 30 Nov 2014 04:27:47 +0000
(12:27 +0800)
committer
Andy Green
<andy.green@linaro.org>
Sun, 30 Nov 2014 04:27:47 +0000
(12:27 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-fraggle.c
patch
|
blob
|
history
diff --git
a/test-server/test-fraggle.c
b/test-server/test-fraggle.c
index
f2ea1e0
..
b3beab9
100644
(file)
--- a/
test-server/test-fraggle.c
+++ b/
test-server/test-fraggle.c
@@
-111,7
+111,7
@@
callback_fraggle(struct libwebsocket_context *context,
case FRAGSTATE_POST_PAYLOAD_SUM:
- sum =
p[0]
<< 24;
+ sum =
((unsigned int)p[0])
<< 24;
sum |= p[1] << 16;
sum |= p[2] << 8;
sum |= p[3];