mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 83679 default int expansion might bloat byte reassembly
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
74f93d190b
commit
59800b764e
1 changed files with 2 additions and 1 deletions
|
@ -423,7 +423,8 @@ swallow:
|
|||
|
||||
/* terminal state */
|
||||
|
||||
n = (lextable[wsi->u.hdr.lextable_pos] << 8) | lextable[wsi->u.hdr.lextable_pos + 1];
|
||||
n = ((unsigned int)lextable[wsi->u.hdr.lextable_pos] << 8) |
|
||||
lextable[wsi->u.hdr.lextable_pos + 1];
|
||||
|
||||
lwsl_parser("known hdr %d\n", n);
|
||||
if (n == WSI_TOKEN_GET_URI &&
|
||||
|
|
Loading…
Add table
Reference in a new issue