Detect invalid control characters #128
Labels
bug
Something isn't working
implemented in v3
Fixes + features which were implemented in v3 release.
TOML spec
An issue relating to the library's TOML spec conformance.
Environment
toml++ version and/or commit hash:
v3 f3bd22b
Compiler:
gcc 11.1.0
C++ standard mode:
c++20
Target arch:
linux x86_64
Library configuration overrides:
n/a
Relevant compilation flags:
meson build_tt --buildtype=release -Dbuild_tt_encoder=true -Dbuild_tt_decoder=true -Dgenerate_cmake_config=false
Describe the bug
A TOML document containing only invalid control characters should return an error.
For example, a file with on a single byte of
0x0b
(vertical tab) or0x0c
(form feed) is an invalid TOML document.Steps to reproduce (or a small repro code sample)
On Linux with zsh, create a file with only a vertical tab and consume with
tt_decoder
:Additional information
The same file returns an error with other decoders, such as toml.dart:
Found while doing differential fuzzing against go-toml.
The text was updated successfully, but these errors were encountered: