[QFJ-278] method extractField(Group group, DataDictionary dataDictionary, FieldMap fields) don't check The length of "sohOffset" Created: 24/Dec/07 Updated: 01/Feb/08 |
|
Status: | Open |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.2.1 |
Fix Version/s: | Future Releases |
Type: | Bug | Priority: | Default |
Reporter: | CaiQi | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None |
Description |
In the class Message, method extractField(Group group, DataDictionary dataDictionary, FieldMap fields): The length of "sohOffset" is not checked. This will bring about full range of the message received as Message string out of range. For all the field, if it is dataField, its length must be calculated by the former Field(Except for Tag 89/93). Because the data may contain a SOH. Add this code into Message.extractField(): //Judge if sohOffset's next char is '\001'. |
Comments |
Comment by CaiQi [ 24/Dec/07 ] |
Initiator:send a message which is not comply with the protocol. For example, the dependances of fields. 354: the length of 355 |