ravahn / machina

Network capture library for realtime TCP/IP decoding from a windows application. Includes an extension library to support FFXIV data capture.
GNU General Public License v3.0
213 stars 77 forks source link

Fix infinite loop and correct header found logic #20

Closed sandtechnology closed 2 years ago

sandtechnology commented 2 years ago

When hitting bad data it will go into infinite loop and the logic there is incorrect for finding header (it should finding every data not the data in data.length/4), also it should return the value of i+offset and start find it from offset+1. Thanks to @Noisyfox and others for helping me in this issue!