[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suspicious code in unexelf.c

From: David Kaelbling
Subject: Suspicious code in unexelf.c
Date: Tue, 20 Nov 2001 16:06:08 -0500 (EST)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.1.1 (mips-sgi-irix6.5)
 of 2001-11-19 on orchietta.hudson.sgi.com
configured using `configure  mips-sgi-irix6.5 --prefix=/usr/freeware 
--libdir=/usr/freeware/lib32 --without-gcc --with-pop --with-x 
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Looking at unexelf.c, I see the following around line 1001:

          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
          || !strcmp ((old_section_names + NEW_SECTION_H (n).sh_name),
          || !strcmp (old_section_names + NEW_SECTION_H (nn).sh_name,
        src = (caddr_t) OLD_SECTION_H (n).sh_addr;
        src = old_base + OLD_SECTION_H (n).sh_offset;

Should .sbss really be using "nn" when all the other tests use "n"?

Recent input:
C-s C-a C-p C-x o C-h d t o o l - b a r - m o d e <return> 
<escape> x t o o l SPC b SPC m o SPC <return> C-l M-v 
M-v M-v M-v M-v C-x o C-x o C-x o C-x 1 C-x b <return> 
C-x k <return> <escape> x c l a <backspace> <backspace> 
a l SPC d SPC <backspace> e SPC <return> <escape> x 
t o o l SPC SPC SPC <return> C-x k <return> C-x 0 <escape> 
x r e p SPC <escape> p <escape> p <escape> p <escape> 
p <return>

Recent messages:
Mark saved where search started
Loading /usr/freeware/libexec/emacs/21.1/mips-sgi-irix6.5/fns-21.1.1.el 
Type C-x 4 b RET to restore the other window.  C-M-v to scroll the help.
Tool-Bar mode disabled
Making completion list...
Loading calendar...done
Loading mule-util...done
Loading cal-move...done
Tool-Bar mode enabled
Making completion list...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]