Skip to content

make packet.read unsafe and add a safe api in input context.#261

Open
nrbnlulu wants to merge 3 commits intozmwangx:masterfrom
nrbnlulu:make-packet.readunsafe
Open

make packet.read unsafe and add a safe api in input context.#261
nrbnlulu wants to merge 3 commits intozmwangx:masterfrom
nrbnlulu:make-packet.readunsafe

Conversation

@nrbnlulu
Copy link

@nrbnlulu nrbnlulu commented Feb 4, 2026

fix #260


loop {
match packet.read(self.context) {
match unsafe { packet.read(self.context) } {
Copy link
Author

Choose a reason for hiding this comment

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

I never used the iterator API tho if I had to guess I'd this can leak as well..

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.

Packet leak when reading to a "not empty" packet.

1 participant