Package: barrage
Version: 1.0.3-1

This was originally Ubuntu bug report :
https://bugs.launchpad.net/ubuntu/+source/barrage/+bug/1008011

When built with fortify this fails at the code, menu.c:38

        snprintf( entry->name, 24, "%s", name ); entry->name[23] = 0;

which all looks nice and careful until you look at menu.h:

typedef struct {                                                                
                                                                                
                                                                                
                               
        char    name[20];       /* name */                                      
                                                                                
                                                                                
                               
        int     x, w, h;        /* size and x position; y depends on the 
position                                                                        
                                                                                
                                      
                                   in the menu and is computed dynamically */   
                                                                                
                                                                                
                               
        int     id;             /* unique id */                                 
                                                                                
                                                                                
                               
} MenuEntry;                                                                    
                                                                                
                                                                                
                               

Here is a patch I wrote:
https://launchpadlibrarian.net/126521626/03_fixmenuentrylength.patch

Actually, I've just ntocied it's fixed upstream in 1.0.4 so probably
the best thing is just to grab that.

Dave

-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to