[Rpm-maint] [rpm-software-management/rpm] make sure not to dereference NULL pointer (#106)

Florian Festi notifications at github.com
Thu Jan 26 14:47:37 UTC 2017

The check for the missing states should not be done by file but per package.

rpmfsSetAction(fs, recs[j].fileno, FA_SKIP);
prevents new files from being removed on an update. This is not something we want to leave out light heartedly.

Possible things to do are: 
Error out and state that the rpmdb is corrupted (in a bit more detail)
Assume  RPMFILE_STATE_NORMAL for all files and rather risk leftover files than an empty system.

So this patch needs a redesign. Closing for now. Feel free to reopen or file a new one.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170126/6a84c55d/attachment.html>

More information about the Rpm-maint mailing list