The RPM package management system
Go to file
Michal Domonkos c5168f7f34 Fix use-after-free error in hashtab.c
This file has been completely removed upstream in the meantime (as part
of the debuginfo tooling split off in commit 04b0805) so this patch will
only be carried downstream.

The issue here was that htab->entries would be freed at the end of
htab_expand() if the htab->return_allocation_failure toggle was 0, and
later accessed in the calling function(s).

In reality, though, the toggle is initialized to 1 and never turned off
in the current implementation, but let's future-proof ourselves in case
we inadvertently turn it off in a future patch.

Found by Coverity.

Related: #1938861
2021-07-01 15:51:34 +02:00
.gitignore Merged update from upstream sources 2021-03-29 06:15:18 +00:00
0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
0001-Issue-deprecation-warning-when-creating-BDB-database.patch Merged update from upstream sources 2020-10-30 03:09:06 +01:00
0001-NFC-debugedit-Protect-macro-arguments-by-parentheses.patch Merged update from upstream sources 2021-01-20 13:04:28 +00:00
0002-NFC-debugedit-Move-code-from-edit_dwarf2-to-edit_inf.patch Merged update from upstream sources 2021-01-20 13:04:28 +00:00
0003-debugedit-Fix-missing-relocation-of-.debug_types-sec.patch Merged update from upstream sources 2021-01-20 13:04:28 +00:00
0004-NFC-debugedit-Move-code-to-separate-functions.patch Merged update from upstream sources 2021-01-20 13:04:28 +00:00
0005-debugedit-Implement-DWARF-5-unit-header-and-new-form.patch Merged update from upstream sources 2021-01-20 13:04:28 +00:00
0006-debugedit-Handle-DWARF-5-debug_line-and-debug_line_s.patch Merged update from upstream sources 2021-01-22 11:06:00 +00:00
rpm-4.7.1-geode-i686.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
rpm-4.9.90-no-man-dirs.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
rpm-4.12.0-rpm2cpio-hack.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
rpm-4.15.x-ldflags.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
rpm-4.15.x-siteconfig.patch RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
rpm-4.16.1.3-hashtab-use-after-free-fix.patch Fix use-after-free error in hashtab.c 2021-07-01 15:51:34 +02:00
rpm-4.16.1.3-imp-covscan-fixes.patch Address important covscan issues 2021-07-01 15:08:20 +02:00
rpm.spec Fix use-after-free error in hashtab.c 2021-07-01 15:51:34 +02:00
rpmdb-rebuild.service RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00
sources Merged update from upstream sources 2021-03-29 06:15:18 +00:00
STAGE2-rpm RHEL 9.0.0 Alpha bootstrap 2020-10-14 21:51:14 -07:00