summaryrefslogtreecommitdiffhomepage
path: root/src/NeBuildKit/JSONManifestBuilder.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-08 15:50:45 +0100
committerGitHub <noreply@github.com>2026-03-08 15:50:45 +0100
commit386b6ba6702aaf121a8667b68fba86385dad68ed (patch)
tree985c7eda4fafa827eaad88b6b469b0baba791817 /src/NeBuildKit/JSONManifestBuilder.cpp
parent7a469801ecb55fcde0199d4e41b1cec3a17dcb05 (diff)
parentddb1cbc831b6d13b985d91022f01e955e24ae871 (diff)
Merge pull request #25 from ne-foss-org/nebuild-patches-deref
[CHORE] Patching TOML manifest parser to avoid null deref.
Diffstat (limited to 'src/NeBuildKit/JSONManifestBuilder.cpp')
-rw-r--r--src/NeBuildKit/JSONManifestBuilder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/NeBuildKit/JSONManifestBuilder.cpp b/src/NeBuildKit/JSONManifestBuilder.cpp
index 0cc9fd3..b3db08f 100644
--- a/src/NeBuildKit/JSONManifestBuilder.cpp
+++ b/src/NeBuildKit/JSONManifestBuilder.cpp
@@ -28,8 +28,7 @@ bool JSONManifestBuilder::BuildTarget(BuildConfig& config) {
path = config.path_;
if (!FS::exists(path)) {
- NeBuild::Logger::info() << "error: file '" << path << "' does not exist"
- << std::endl;
+ NeBuild::Logger::info() << "error: file '" << path << "' does not exist" << std::endl;
return false;
}
}
@@ -38,8 +37,8 @@ bool JSONManifestBuilder::BuildTarget(BuildConfig& config) {
std::ifstream json(path);
if (!json.good()) {
- NeBuild::Logger::info() << "error: file '" << path
- << "' is not a valid nlohmann::json" << std::endl;
+ NeBuild::Logger::info() << "error: file '" << path << "' is not a valid nlohmann::json"
+ << std::endl;
return false;
}
@@ -52,7 +51,8 @@ bool JSONManifestBuilder::BuildTarget(BuildConfig& config) {
if (auto res = description.get<std::string>(); !res.empty())
NeBuild::Logger::info() << "description: " << res << std::endl;
- } catch (...) {}
+ } catch (...) {
+ }
std::string compiler = json_obj["compiler_path"].get<std::string>();