[Rpm-maint] [rpm-software-management/rpm] Ensure negation comes *after* division (#1542)

Demi Marie Obenour notifications at github.com
Tue Feb 16 18:01:21 UTC 2021


Unary `-` has a higher precedence than binary `/` in C.  Found by UBSAN
and libfuzzer.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1542

-- Commit Summary --

  * Ensure negation comes *after* division

-- File Changes --

    M lib/header.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1542.patch
https://github.com/rpm-software-management/rpm/pull/1542.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1542
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210216/1a588109/attachment.html>


More information about the Rpm-maint mailing list