Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912992 - [games-emulation/duckstation-9999] src/util/cd_image_chd.cpp Trips format-security Flag
Summary: [games-emulation/duckstation-9999] src/util/cd_image_chd.cpp Trips format-sec...
Status: RESOLVED UPSTREAM
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Haelwenn (lanodan) Monnier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 09:08 UTC by Neko-san
Modified: 2023-10-28 04:55 UTC (History)
1 user (show)

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


Attachments
Emerge Info and Build Log (duckstation-emerge-info-and-build-log.log,297.64 KB, text/x-log)
2023-08-25 09:08 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-08-25 09:08:20 UTC
This isn't "technically" too big of a deal, but do correct me if I'm wrong because I'm not an expert on how security memory exploits work for C++, but there's at least one instance of -Werror=format-security in "src/util/cd_image_chd.cpp" being tripped on line 163.

Of course, this only doesn't happen if you don't build with this flag but I do because I generally keep an eye out for this stuff where I can. This isn't the first time I've caught upstream making this specific error either, but they aren't very receptive to open-source behavior on this particular project (it's locked/restricted) either, so it's not even possible to mention issues there.

Reproducible: Always

Steps to Reproduce:
1.Add "-Wformat -Werror=format-security" to CFLAGS
2.emerge duckstation
Actual Results:  
Build fails due to a format security error

Expected Results:  
Build to succeed without such an issue
Comment 1 Neko-san 2023-08-25 09:08:53 UTC
Created attachment 868674 [details]
Emerge Info and Build Log
Comment 2 Alex Barker 2023-10-27 05:52:53 UTC
I am unable to currently reproduce this problem. It may have been resolved upstream.