blurite / rsprot

RSProt is an all-in-one networking package for RuneScape Private Servers, primarily targeted at the OldSchool scene.
MIT License
27 stars 5 forks source link

Packet Validation #21

Open Z-Kris opened 3 weeks ago

Z-Kris commented 3 weeks ago

We need to add packet validation to RSProt to ensure that servers cannot cause clients to crash by sending corrupt game packets. This validation should support opting out of it. This validation would include things like:

The end goal of this is to throw errors early on-spot, as this makes it easier for developers to figure out the problematic spots in their codebase. If the error is left up to the client, or the packet encoder, the stacktrace is lost as far as "where did this actually stem from" goes, which makes figuring these cases out harder.