mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash when reading an empty 'manifest.json'.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- Deprecated inline generic types.
|
||||
- Deprecated tuple / triple types.
|
||||
- Converting a slice to a vector/array would copy too little data.
|
||||
- Crash when reading an empty 'manifest.json'.
|
||||
|
||||
### Stdlib changes
|
||||
*None yet*
|
||||
|
||||
@@ -172,6 +172,10 @@ INLINE JSONObject* read_manifest(const char *lib, const char *manifest_data)
|
||||
{
|
||||
error_exit("Error on line %d reading '%s':'%s'", parser.line, lib, parser.error_message);
|
||||
}
|
||||
if (!json)
|
||||
{
|
||||
error_exit("Empty 'manifest.json' for library '%s'.", lib);
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user