Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 632628

Summary: sys-libs/db-4.8.30 build fix for -Werror-format=security
Product: Gentoo Linux Reporter: René Rhéaume <rene.rheaume>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713576, 259417    
Attachments: db-4.8.30-format-security.patch

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(+)