Bug 57318 - The value of int b in WsFrame class changes value of int rsv
Summary: The value of int b in WsFrame class changes value of int rsv
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: WebSocket (show other bugs)
Version: 7.0.53
Hardware: All Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-05 19:39 UTC by jasonricles
Modified: 2014-12-05 19:48 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jasonricles 2014-12-05 19:39:28 UTC
When I am sending binary data through a websocket in tomcat, I get a reserved bit set to n (n being a number between 1-7) error. This is caused by when the class WsFrame of tomcat is entered and the value of int b is set to input buffer, when this is set the value of int rsv (reserve bit) changes to a non 0 number. However b and rsv are never set to each other and thus the changing of b should have no effect on the value of rsv. I believe this may be due to memory corruption or another type of memory error where both values are being held at the same address in memory for some reason.
Comment 1 jasonricles 2014-12-05 19:41:18 UTC
The sendbinary method is what causes this error to be thrown not send text or send object.
Comment 2 jasonricles 2014-12-05 19:48:09 UTC
This is fixed in at least tomcat 7.0.53 and possibly any version greater then tomcat 7.0.53.