Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632628 - sys-libs/db-4.8.30 build fix for -Werror-format=security
Summary: sys-libs/db-4.8.30 build fix for -Werror-format=security
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: format-security fortify-source
  Show dependency tree
 
Reported: 2017-10-01 12:48 UTC by René Rhéaume
Modified: 2022-06-20 05:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
db-4.8.30-format-security.patch (db-4.8.30-format-security.patch,1.02 KB, patch)
2017-10-01 12:48 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2017-10-01 12:48:51 UTC
Created attachment 497298 [details, diff]
db-4.8.30-format-security.patch

db has a few error messages stored in temporary variables before being emitted. They are sent to a printf-like function without using "%s". The attached patch corrects this.
Comment 1 Larry the Git Cow gentoo-dev 2022-06-20 05:04:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=503f602e1edc26f721b47c80981068f547b86b68

commit 503f602e1edc26f721b47c80981068f547b86b68
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-20 03:33:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-20 05:03:51 +0000

    sys-libs/db: fix -Wformat-security
    
    Closes: https://bugs.gentoo.org/632628
    Thanks-to: René Rhéaume <rene.rheaume@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/db/db-4.8.30-r7.ebuild                 | 164 ++++++++++++++++++++++++
 sys-libs/db/files/db-4.8-wformat-security.patch |  43 +++++++
 2 files changed, 207 insertions(+)