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

Bug 223537

Summary: Gimmix progress bar shows garbage next to time
Product: Gentoo Linux Reporter: Jean-François Wauthy <pollux>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild applying bugfix
patch fixing the issue

Description Jean-François Wauthy 2008-05-25 10:04:18 UTC
The progress bar shows memory garbage next to the current time position of the played song.

This problem appears when going over the 100th minute of playing indicating an eventual problem of buffer overflow. Looking in the source code I found out that the time string is limited to 15 caracters which is too short for a long track (i.e. 431 minutes).

The solution is simply to allocate a larger string on the stack or to dynamically allocate it on the heap.

The bug has been reported upstream: https://bugs.launchpad.net/gimmix/+bug/234739

Reproducible: Always

Steps to Reproduce:
Comment 1 Jean-François Wauthy 2008-05-25 10:05:20 UTC
Created attachment 154243 [details]
Ebuild applying bugfix
Comment 2 Jean-François Wauthy 2008-05-25 10:05:43 UTC
Created attachment 154245 [details]
patch fixing the issue
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2008-09-28 14:34:54 UTC
This is fixed in gimmix-0.5.0