[Rpm-maint] [rpm-software-management/rpm] Fix possible NULL pointer dereference in rpmfcClassify (PR #1873)
Dmitry Gerasimov
notifications at github.com
Mon Dec 27 09:53:24 UTC 2021
Here is simplified overview of possible dereference:
```cpp
if (fc == NULL) {
rpmlog(RPMLOG_ERR, _("Empty file classifier\n"));
goto exit;
}
// ...
exit:
rpmstrPoolFreeze(fc->cdict, 0);
~~~~~~~~~
```
This issue was found by Svace Static Analyzer.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1873
-- Commit Summary --
* Fix possible NULL pointer dereference in rpmfcClassify
-- File Changes --
M build/rpmfc.c (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1873.patch
https://github.com/rpm-software-management/rpm/pull/1873.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1873
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1873 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211227/e578f4d4/attachment.html>
More information about the Rpm-maint
mailing list