[Bug general/21011] New: "may be used uninitialized" error with -Werror=maybe-uninitialized

2016-12-30 Thread luizluca at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21011

Bug ID: 21011
   Summary: "may be used uninitialized" error with
-Werror=maybe-uninitialized
   Product: elfutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: general
  Assignee: unassigned at sourceware dot org
  Reporter: luizluca at gmail dot com
CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Hello,

I get this error when compiling with -Werror=maybe-uninitialized

elf_getarsym.c: In function 'elf_getarsym':
elf_getarsym.c:200:14: error: 'n' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
   size_t ar_sym_len = (n + 1) * sizeof (Elf_Arsym);


I know that read_number_entries define its values unconditionally but it won't
hurt to simply use:

  uint64_t n = 0;

Is it ok?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Re: The elfutils-devel mailinglist is now at sourceware.

2016-12-30 Thread Kurt Roeckx
On Fri, Dec 30, 2016 at 10:25:42PM +0100, Mark Wielaard wrote:
> Hi elfutils hackers,
> 
> The elfutils-devel mailinglist is now hosted at sourceware.
> https://sourceware.org/ml/elfutils-devel/
> 
> Everybody subscribed to the old elfutils-devel hosted at
> lists.fedorahosted.org has been subscribed to the new list.

This list doesn't has a List-Id, can this be fixed?

The headers show:
Mailing-List: contact elfutils-devel-h...@sourceware.org; run by ezmlm
Precedence: bulk
List-Post: 
List-Help: 
List-Unsubscribe: 
List-Subscribe: 

While the old one has:
Precedence: list
List-Id: List for developers of elfutils 
Archived-At: 

List-Archive: 

List-Help: 
List-Post: 
List-Subscribe: 
List-Unsubscribe: 

As far as I know, the List-Id is what you really want.


Kurt



[Bug general/21002] Incompatible with MUSL libc

2016-12-30 Thread luizluca at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21002

Luiz Angelo Daros de Luca  changed:

   What|Removed |Added

 Depends on||21008, 21009, 21010

--- Comment #4 from Luiz Angelo Daros de Luca  ---
- error(): created a new bug 21008

- canonicalize_file_name(): create a new bug 21009

- strerror_r: create a new bug 21010

- strndupa is provided by MUSL if defined _GNU_SOURCE. Not a problem anymore
  https://github.com/esmil/musl/blob/master/include/string.h#L89

Until now, I still only tested compiling elfutils libraries.


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=21008
[Bug 21008] Incompatible with MUSL libc: error.h and error() not provided
https://sourceware.org/bugzilla/show_bug.cgi?id=21009
[Bug 21009] Incompatible with MUSL libc: canonicalize_file_name
https://sourceware.org/bugzilla/show_bug.cgi?id=21010
[Bug 21010] Incompatible with MUSL libc: strerror_r
-- 
You are receiving this mail because:
You are on the CC list for the bug.