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")

Details

Provenance
markjAuthored on Thu, Jan 16, 3:09 PM
Parents
rG4ed2448a4f2b: ls.1: bump date after 82fa7f83b53b and 8b92977857f8
Branches
Unknown
Tags
Unknown