Commit Graph

7 Commits

Author SHA1 Message Date
Kogia-sima e316c82eb5 Remove String::truncate()
Current implementation is unsafe because it doesn't check if `new_len`
does lie on a char boundary.
2020-12-17 16:24:57 +09:00
Kogia-sima aa0afb1f81 doc: Update safety documents
and some assertion fix
2020-12-16 21:17:06 +09:00
Kogia-sima 834289be59 refactor: Reduce unsafe blocks 2020-11-21 18:44:52 +09:00
Kogia-sima fcde448751 Add trim filter 2020-07-22 06:40:26 +09:00
Kogia-sima 80b64fe883 break: Remove Buffer::set_len method
This method allows reducing the buffer size, but it should not be
possible.
Alternatively I added a Buffer::advance method to increase the length.
2020-07-15 19:49:35 +09:00
Kogia-sima 15b0504564 Add tests for filter 2020-07-15 19:34:53 +09:00
Kogia-sima eac0dfbf5b Add minimal runtime filters 2020-07-15 17:12:31 +09:00