From ddb1cbc831b6d13b985d91022f01e955e24ae871 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 8 Mar 2026 15:47:16 +0100 Subject: [CHORE] Patching TOML manifest parser to avoid null deref. Signed-off-by: Amlal El Mahrouss --- vendor/toml++/toml.hpp | 70 +++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'vendor/toml++/toml.hpp') diff --git a/vendor/toml++/toml.hpp b/vendor/toml++/toml.hpp index 7783f24..a25cef5 100644 --- a/vendor/toml++/toml.hpp +++ b/vendor/toml++/toml.hpp @@ -1,12 +1,12 @@ -//# This file is a part of toml++ and is subject to the the terms of the MIT license. -//# Copyright (c) Mark Gillard -//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. -// SPDX-License-Identifier: MIT +// # This file is a part of toml++ and is subject to the the terms of the MIT license. +// # Copyright (c) Mark Gillard +// # See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. +// SPDX-License-Identifier: MIT #ifndef TOMLPLUSPLUS_HPP #define TOMLPLUSPLUS_HPP -#define INCLUDE_TOMLPLUSPLUS_H // old guard name used pre-v3 -#define TOMLPLUSPLUS_H // guard name used in the legacy toml.h +#define INCLUDE_TOMLPLUSPLUS_H // old guard name used pre-v3 +#define TOMLPLUSPLUS_H // guard name used in the legacy toml.h #include "impl/preprocessor.hpp" @@ -17,9 +17,9 @@ TOML_DISABLE_SUGGEST_ATTR_WARNINGS; // misc warning false-positives #if TOML_MSVC -#pragma warning(disable : 5031) // #pragma warning(pop): likely mismatch +#pragma warning(disable : 5031) // #pragma warning(pop): likely mismatch #if TOML_SHARED_LIB -#pragma warning(disable : 4251) // dll exports for std lib types +#pragma warning(disable : 4251) // dll exports for std lib types #endif #elif TOML_CLANG TOML_PRAGMA_CLANG(diagnostic ignored "-Wheader-hygiene") @@ -31,49 +31,49 @@ TOML_PRAGMA_CLANG(diagnostic ignored "-Wreserved-identifier") #endif #endif -#include "impl/std_new.hpp" -#include "impl/std_string.hpp" -#include "impl/std_optional.hpp" -#include "impl/forward_declarations.hpp" -#include "impl/print_to_stream.hpp" -#include "impl/source_region.hpp" -#include "impl/date_time.hpp" +#include "impl/array.hpp" #include "impl/at_path.hpp" -#include "impl/path.hpp" +#include "impl/date_time.hpp" +#include "impl/formatter.hpp" +#include "impl/forward_declarations.hpp" +#include "impl/json_formatter.hpp" +#include "impl/key.hpp" +#include "impl/make_node.hpp" #include "impl/node.hpp" #include "impl/node_view.hpp" -#include "impl/value.hpp" -#include "impl/make_node.hpp" -#include "impl/array.hpp" -#include "impl/key.hpp" -#include "impl/table.hpp" -#include "impl/unicode_autogenerated.hpp" -#include "impl/unicode.hpp" #include "impl/parse_error.hpp" #include "impl/parse_result.hpp" #include "impl/parser.hpp" -#include "impl/formatter.hpp" +#include "impl/path.hpp" +#include "impl/print_to_stream.hpp" +#include "impl/source_region.hpp" +#include "impl/std_new.hpp" +#include "impl/std_optional.hpp" +#include "impl/std_string.hpp" +#include "impl/table.hpp" #include "impl/toml_formatter.hpp" -#include "impl/json_formatter.hpp" +#include "impl/unicode.hpp" +#include "impl/unicode_autogenerated.hpp" +#include "impl/value.hpp" #include "impl/yaml_formatter.hpp" #if TOML_IMPLEMENTATION -#include "impl/std_string.inl" -#include "impl/print_to_stream.inl" -#include "impl/node.inl" +#include "impl/array.inl" #include "impl/at_path.inl" +#include "impl/formatter.inl" +#include "impl/json_formatter.inl" +#include "impl/node.inl" +#include "impl/parser.inl" #include "impl/path.inl" -#include "impl/array.inl" +#include "impl/print_to_stream.inl" +#include "impl/std_string.inl" #include "impl/table.inl" -#include "impl/unicode.inl" -#include "impl/parser.inl" -#include "impl/formatter.inl" #include "impl/toml_formatter.inl" -#include "impl/json_formatter.inl" +#include "impl/unicode.inl" #include "impl/yaml_formatter.inl" -#endif // TOML_IMPLEMENTATION +#endif // TOML_IMPLEMENTATION TOML_POP_WARNINGS; @@ -228,4 +228,4 @@ TOML_POP_WARNINGS; #undef TOML_WINDOWS #endif -#endif // TOMLPLUSPLUS_HPP +#endif // TOMLPLUSPLUS_HPP -- cgit v1.2.3