Skip to content

Conversation

@vyourtchenko-connamara
Copy link

No description provided.

@vyourtchenko-connamara vyourtchenko-connamara marked this pull request as draft December 17, 2025 19:41
// Corrupt the checksum in the bytes directly
// The message ends with "10=XXX\x01". We flip a bit in the last digit.
checksumDigitIndex := len(msgBytes) - 2
msgBytes[checksumDigitIndex] ^= 1
Copy link
Author

@vyourtchenko-connamara vyourtchenko-connamara Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I have a more clear way to edit the checksum? @michaelwilner

@vyourtchenko-connamara vyourtchenko-connamara marked this pull request as ready for review December 17, 2025 20:05

// ParseMessage constructs a Message from a byte slice wrapping a FIX message.
func ParseMessage(msg *Message, rawMessage *bytes.Buffer) (err error) {
return ParseMessageWithDataDictionary(msg, rawMessage, nil, nil)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should probably be changed to include the skipChecksum check in the argument instead as that would provide more control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant