[Rpm-maint] [rpm-software-management/rpm] Check for overflow in computing region length (#1548)

Demi Marie Obenour notifications at github.com
Thu Feb 18 23:06:38 UTC 2021


This uses the GCC builtin `__builtin_add_overflow`, so no casts or manual checks are needed.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add static assertions to RPM
  * Avoid overflow computing region offsets

-- File Changes --

    M lib/header.c (8)
    M system.h (10)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1548.patch
https://github.com/rpm-software-management/rpm/pull/1548.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/1548
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210218/e7fbcc30/attachment.html>


More information about the Rpm-maint mailing list