aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:25:36 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 13:25:36 -0400
commitd4ee4bb641919b820d6fc04081924beddc4fcbbb (patch)
treec27838857426b65f0a5ba00089223dcd30be7e1a /src
parentc354f4743c7897e2fe8ca69266146d7e8b86a222 (diff)
downloadstasis-d4ee4bb641919b820d6fc04081924beddc4fcbbb.tar.gz
wheel_parse_metadata: return on error
Diffstat (limited to 'src')
-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 9f3b3c8..5a2bfe2 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