0.2.6 (current) Thoroughness: Medium Understanding: Medium
by MaulingMonkey on 2019-09-05
This review is from Crev, a distributed system for code reviews. To add your review, set up cargo-crev
.
0.2.6 (current) Thoroughness: Medium Understanding: Medium
by MaulingMonkey on 2019-09-05
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.
To review the actual code of the crate, it's best to use cargo crev open tiled-json-rs
. Alternatively, you can download the tarball of tiled-json-rs v0.2.6 or view the source online.
Do not use on User Generated Content!
For game engines, there's also no great way to inject your own virtual filesystem callbacks (again see Tileset::new_reference)
Pros:
Cons:
Detail
src/layer.rs
src/parsers.rs
src/tile_set.rs
Issue: High (gitlab.com/ljcode/tiled-json-rs/issues/1)
Path traversal attacks?
Issue: Medium (gitlab.com/ljcode/tiled-json-rs/issues/2)
Panic on bad data (DoS source via UGC?)