jamesdbrock / hffix

Financial Information Exchange Protocol C++ Library
http://jamesdbrock.github.io/hffix
Other
276 stars 89 forks source link

Error in next_message_reader #36

Open Roman-Koshelev opened 3 years ago

Roman-Koshelev commented 3 years ago

The line "8=FIX" will not necessarily be the beginning of a new message. For example, you will get "58=FIX arbitrary string". Search correctly for "\18=FIX"

jamesdbrock commented 3 years ago

Yeah, good point. That's a rare case but it could occur. That should be fixed. Do you want to make a PR?

Roman-Koshelev commented 3 years ago

Yes, I will be happy to do PR. (a couple of hours and it's all in the bag)