Date: Wed, 06 Aug 2014 15:57:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192445] New: pkg segfault when broken database Message-ID: <bug-192445-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: gl00my@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192445-13>