mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity 83682 suspicous signed bytewise reassembly
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
56686d784c
commit
31fc6ff5b5
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue