Bug 64563

Summary: Special payload length of websocket frame leads to high CPU usage
Product: Tomcat 9 Reporter: niuhailiang
Component: WebSocketAssignee: Tomcat Developers Mailing List <dev>
Severity: major CC: niuhailiang
Priority: P2    
Version: 9.0.21   
Target Milestone: -----   
Hardware: PC   
OS: All   
Attachments: the debug result

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!