rpm/rpm-4.14.2.1-fix-missing-translations-from-rpm4-segfault.patch

13 lines
465 B
Diff
Raw Normal View History

--- rpm-4.14.2.1.patched/lib/transaction.c 2018-10-22 11:22:25.071540970 +0200
+++ rpm-4.14.2.1/lib/transaction.c 2019-06-29 11:46:44.911485941 +0200
@@ -1152,7 +1152,8 @@
break;
case TR_REMOVED:
if (!beingRemoved) {
- if (*rpmtdGetChar(&ostates) == RPMFILE_STATE_NORMAL)
+ char *state = rpmtdGetChar(&ostates);
+ if (state && *state == RPMFILE_STATE_NORMAL)
rpmfsSetAction(fs, recs[j].fileno, FA_SKIP);
}
break;