Bug 64563 - Special payload length of websocket frame leads to high CPU usage
Summary: Special payload length of websocket frame leads to high CPU usage
Status: RESOLVED CLOSED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: WebSocket (show other bugs)
Version: 9.0.21
Hardware: PC All
: P2 major (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-28 07:56 UTC by niuhailiang
Modified: 2020-06-29 09:04 UTC (History)
1 user (show)



Attachments
the debug result (43.24 KB, image/png)
2020-06-28 07:56 UTC, niuhailiang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description niuhailiang 2020-06-28 07:56:19 UTC
Created attachment 37336 [details]
the debug result

If all bits(7+64) of the payload length in one websocket frame are 1,the length will be resolved to a negative value which will cause an endless loop.The result is CPU usage is high and will not drop!