]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[mucurses] Attempt to fix use of uninitialised buffer with strcat()
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 13:30:05 +0000 (15:30 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Mar 2017 13:30:05 +0000 (15:30 +0200)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/hci/mucurses/slk.c

index da35c5675efbc9edee2ad84a6ffdb36e2d721a88..b900c068a18e5975cbeded70a466a4fd92486daa 100644 (file)
@@ -81,6 +81,7 @@ static void _print_label ( struct _softlabel sl ) {
 
        assert ( slks->max_label_len <= SLK_MAX_LABEL_LEN );
        space_ch = ' ';
+       memset ( str, 0, sizeof ( str ) );
 
        // protect against gaps in the soft label keys array
        if ( ! sl.label[0] ) {