mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:28:12 +08:00
fix: limit value recursion in array/inl-table
to avoid parse_value/parse_array recursion
This commit is contained in:
@@ -53,7 +53,7 @@ literal_internal_impl(::toml::detail::location loc)
|
||||
// If it is neither a table-key or a array-of-table-key, it may be a value.
|
||||
if(!is_table_key && !is_aots_key)
|
||||
{
|
||||
if(auto data = ::toml::detail::parse_value<value_type>(loc))
|
||||
if(auto data = ::toml::detail::parse_value<value_type>(loc, 0))
|
||||
{
|
||||
return data.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user