[Bug binutils/28072] New: Hard coded plural in readelf.c

2021-07-10 Thread fmarchal at perso dot be
https://sourceware.org/bugzilla/show_bug.cgi?id=28072

Bug ID: 28072
   Summary: Hard coded plural in readelf.c
   Product: binutils
   Version: 2.38 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: fmarchal at perso dot be
  Target Milestone: ---

Readelf.c at line 10946 contains a rule to display a message with
singular/plural.

The rule is hard coded. It assumes 1 is singular and everything else is plural.
This is valid for English but not for other languages. That construct can't be
translated accurately.


  if (do_dynamic && filedata->dynamic_addr)
{
  if (filedata->dynamic_nent == 1)
{
  if (filedata->is_separate)
printf (_("\nIn linked file '%s' the dynamic section at offset
0x%lx contains 1 entry:\n"),
filedata->file_name,
filedata->dynamic_addr);
  else
printf (_("\nDynamic section at offset 0x%lx contains 1 entry:\n"),
filedata->dynamic_addr);
}
  else
{
  if (filedata->is_separate)
printf (_("\nIn linked file '%s' the dynamic section at offset
0x%lx contains %lu entries:\n"),
filedata->file_name,
filedata->dynamic_addr,
(unsigned long) filedata->dynamic_nent);
  else
printf (_("\nDynamic section at offset 0x%lx contains %lu
entries:\n"),
filedata->dynamic_addr,
(unsigned long) filedata->dynamic_nent);
}
}


See gettext documentation for more information about the issue with plural:
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html

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


Issue 35938 in oss-fuzz: binutils:fuzz_readelf: Dynamic-stack-buffer-overflow in unw_decode_r3

2021-07-10 Thread sheriffbot via monorail
Updates:
Labels: -restrict-view-commit

Comment #3 on issue 35938 by sheriffbot: binutils:fuzz_readelf: 
Dynamic-stack-buffer-overflow in unw_decode_r3
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35938#c3

This bug has been fixed. It has been opened to the public.

- Your friendly Sheriffbot

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

Issue 35953 in oss-fuzz: binutils:fuzz_disassemble: Dynamic-stack-buffer-overflow in extract_fields

2021-07-10 Thread sheriffbot via monorail
Updates:
Labels: -restrict-view-commit

Comment #2 on issue 35953 by sheriffbot: binutils:fuzz_disassemble: 
Dynamic-stack-buffer-overflow in extract_fields
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35953#c2

This bug has been fixed. It has been opened to the public.

- Your friendly Sheriffbot

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.