[Bug 192445] New: pkg segfault when broken database
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Aug 6 15:57:36 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192445
Bug ID: 192445
Summary: pkg segfault when broken database
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: gl00my at mail.ru
pkg_jobs.c, pkg_jobs_check_remote_candidate
line 1216:
while (pkgdb_it_next(it, &p, PKG_LOAD_BASIC) == EPKG_OK) {
const char *rdigest;
pkg_get(p, PKG_DIGEST, &rdigest);
/* here it is, rdigest can be == NULL!!! */
if (strcmp(rdigest, digest) != 0) /* here i got segfault, possible due
the broken db */
npkg ++;
pkg update -f solve the issue, but i think it is better, to show some warning,
and not die :)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list