aboutsummaryrefslogtreecommitdiff
path: root/src/lib/core
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:25:36 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-05-11 15:55:11 -0400
commit14ceedd4d1436de5c0f5e448b71bd6e0a5fa154d (patch)
tree387de9f0b01a87e37745786ec09fc454ff4a3a76 /src/lib/core
parent345d8fa8867a37de7493d0bc353a36c6e2680419 (diff)
downloadstasis-14ceedd4d1436de5c0f5e448b71bd6e0a5fa154d.tar.gz
wheel_parse_metadata: return on error
Diffstat (limited to 'src/lib/core')
-rw-r--r--src/lib/core/wheel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/core/wheel.c b/src/lib/core/wheel.c
index ea2089a..64399fd 100644
--- a/src/lib/core/wheel.c
+++ b/src/lib/core/wheel.c
@@ -539,6 +539,10 @@ static ssize_t wheel_parse_metadata(struct WheelMetadata * const pkg, const char
return -1;
}
current_extra = pkg->provides_extra[provides_extra_i];
+ if (!current_extra) {
+ SYSERROR("%s", "provides_extra array cannot have a NULL record");
+ return -1;
+ }
current_extra->target = strdup(value);
if (!current_extra->target) {
// memory error