-
-
Notifications
You must be signed in to change notification settings - Fork 202
Detect invalid control characters #128
Copy link
Copy link
Closed
Labels
TOML specAn issue relating to the library's TOML spec conformance.An issue relating to the library's TOML spec conformance.bugSomething isn't workingSomething isn't workingimplemented in v3Fixes + features which were implemented in v3 release.Fixes + features which were implemented in v3 release.
Metadata
Metadata
Assignees
Labels
TOML specAn issue relating to the library's TOML spec conformance.An issue relating to the library's TOML spec conformance.bugSomething isn't workingSomething isn't workingimplemented in v3Fixes + features which were implemented in v3 release.Fixes + features which were implemented in v3 release.
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=falseDescribe 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.