0.8.0 (older version) Thoroughness: Medium Understanding: Medium
by MaulingMonkey on 2019-09-02
This review is from Crev, a distributed system for code reviews. To add your review, set up cargo-crev
.
The current version of Tiled is 0.13.0.
0.8.0 (older version) Thoroughness: Medium Understanding: Medium
by MaulingMonkey on 2019-09-02
Lib.rs has been able to verify that all files in the crate's tarball, except Cargo.lock
,
are in the crate's repository with a git tag matching the version. Please note that this check is still in beta, and absence of this confirmation does not mean that the files don't match.
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories, so there is a possibility that published crates have a misleading repository URL, or contain different code from the code in the repository.
To review the actual code of the crate, it's best to use cargo crev open tiled
. Alternatively, you can download the tarball of tiled v0.13.0 or view the source online.
Do not use on User Generated Content! * Vulnerable to path traversal attacks if fed bogus .tmx files (see Tileset::new_reference) * No obvious protection against zipbombs * A couple cases where bad input will panic, a potential DoS vector.
For game engines, there's also no great way to inject your own virtual filesystem callbacks (again see Tileset::new_reference)
There's also a few missing features: * Wang Tiles * Terrains * "file" Custom Properties
Detail
src/lib.rs