diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/wheel.c | 4 |
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 |
