Ticket #46291: 0003-elflink-Possible-use-of-unintialized-variable.patch

File 0003-elflink-Possible-use-of-unintialized-variable.patch, 770 bytes (added by adreg@…, 9 years ago)
  • bfd/elflink.c

    From 7311dc1ca5eccf8ccfedd1d06c825b105f057e65 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Adam=20Engstr=C3=B6m?= <adaengst@gmail.com>
    Date: Sat, 20 Dec 2014 17:59:11 +0100
    Subject: [PATCH 3/4] elflink: Possible use of unintialized variable
    
    ---
     bfd/elflink.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/bfd/elflink.c b/bfd/elflink.c
    index f445912..6f79173 100644
    a b _bfd_elf_section_already_linked (bfd *abfd, asection *sec, 
    1241312413                   abfd, sec);
    1241412414              else if (sec->size != 0)
    1241512415                {
    12416                   bfd_byte *sec_contents, *l_sec_contents;
     12416                  bfd_byte *sec_contents, *l_sec_contents = NULL;
    1241712417
    1241812418                  if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents))
    1241912419                    (*_bfd_error_handler)