Skip to content

Commit

Permalink
fix: Use After Free in PacketReader (#67)
Browse files Browse the repository at this point in the history
* refactor: use `Bytes` for buffer

* fix: deal with remain bytes

* refactor: remove unused clone

* chore: remove another unused clone

* depend: relax `bytes` version require

* chore: change it back&update some comment

* test: add test for various packet size

* tests: async read
  • Loading branch information
discord9 authored Sep 19, 2024
1 parent 3142eb5 commit 6bbc3b6
Show file tree
Hide file tree
Showing 3 changed files with 315 additions and 124 deletions.
1 change: 1 addition & 0 deletions mysql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tls = ["tokio-rustls", "pin-project-lite"]
[dependencies]
async-trait = "0.1.52"
byteorder = "1.4.3"
bytes = "1.7.0"
chrono = "0.4.20"
mysql_common = { version = "0.32.0", features = ["chrono"] }
nom = "7.1.0"
Expand Down
Loading

0 comments on commit 6bbc3b6

Please sign in to comment.