marzer / tomlplusplus

Header-only TOML config file parser and serializer for C++17.
https://marzer.github.io/tomlplusplus/
MIT License
1.47k stars 141 forks source link

Crashes when trying to parse file with scientific notation numbers (e-numbers) #199

Closed WhoseTheNerd closed 1 year ago

WhoseTheNerd commented 1 year ago

Environment

toml++ version and/or commit hash:

toml++ v3.3.0

Compiler:

gcc 13.1.1 20230429

C++ standard mode:

c++17

Target arch:

x86_64

Library configuration overrides:

Relevant compilation flags:

Describe the bug

When using scientific notation in the configuration file then an exception is thrown. For example 5.972e24.

Steps to reproduce (or a small repro code sample)

Just parse a file with scientific notation number like 5.972e24.

Additional information

https://github.com/toml-lang/toml/pull/257

WhoseTheNerd commented 1 year ago

I apologize, I had some file paths that weren't enclosed in quotation marks.