websocket-parser icon indicating copy to clipboard operation
websocket-parser copied to clipboard

Size issue

Open pauleffect90 opened this issue 2 years ago • 0 comments

https://github.com/php-ion/websocket-parser/blob/6f506c6f2cbb88607e79c02d6277c2f48c840047/websocket_parser.c#L227

On 32bit systems (most MCUs out there), size_t is usually 32bits wide. The referenced code could produce unexpected results. I suggest explicitly setting the variable's [data_len] length to 64bits wide.

pauleffect90 avatar Dec 11 '22 07:12 pauleffect90