sirjonasxx / G-Earth

Cross-platform Habbo packet manipulator
MIT License
91 stars 47 forks source link

Added boundary for size of packets read by extension server #126

Closed dorving closed 2 years ago

dorving commented 2 years ago

Fixes #125

Couldn't resist to also clean up the code a bit and add some documentation. This makes it a bit harder to evaluate, sorry for that!

But the only semantic change is:

                                if (length > MAX_PACKET_BODY_SIZE)
                                    break;