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

Bug 928566

Summary: x11-plugins/wmrecord-1.0.5.3-r2 fails to compile: wmrecord.c:383:17: error: passing argument 2 of snprintf makes integer from pointer without a cast [-Wint-conversion]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: CONFIRMED ---    
Severity: normal CC: jy6x2b32pie9, treecleaner, voyageur
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-04-04 06:48:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-plugins/wmrecord-1.0.5.3-r2 fails to compile.
Discovered on: x86 (internal ref: tinderbox_x86)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0004
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-04 06:48:54 UTC
Created attachment 889389 [details]
build.log

build log and emerge --info
Comment 2 NHO 2024-05-11 11:14:18 UTC
I dunno what's this program tries to do, my minimal test program segfaults. As it ought to, trying to take a pointer to address "3" as a format string and using string "000" as a size. Someone may be swapped order of operations?
But it's also wrong because string "000" is length 4, due to null terminator.

It's also for WindowMaker/AfterStep WMs and unlikely to work anywhere else, was written 20 years ago and is untouched since, with any upstream dead, and there's better audio recording software out there.
Let's just drop this.
Comment 3 Bernard Cafarelli gentoo-dev 2024-05-12 22:19:45 UTC
Thanks for the analysis! I agree with the conclusion, let's last rite this one