HomeFreeBSD

pkg: Fix Coverity warnings

Description

pkg: Fix Coverity warnings

  • Fix allocation size in config_get_repositories().
  • Fix a memory leak in read_conf_file().
  • Avoid a null pointer dereference in an error path in verify_pubsignature().

Fixes: e3b4a51580fc ("pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME")
Fixes: dc4581589a32 ("pkg: clean support for repositories")
(cherry picked from commit c1557708f1fae1bb9c8e23e3bbb2aa2b055e1211)

Details

Provenance
markjAuthored on Jan 16 2025, 3:09 PM
ngieCommitted on Wed, Mar 26, 3:48 PM
Parents
rGb0d6aa07c193: style.mdoc: HARDWARE generates Release Notes
Branches
Unknown
Tags
Unknown