public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Nimar Arora <nimar_arora@yahoo.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gcc@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: Strange strings in GCC compiled code
Date: Wed, 08 Sep 1999 14:39:00 -0000	[thread overview]
Message-ID: <199909082026.PAA24899@mercury.xraylith.wisc.edu> (raw)
In-Reply-To: <19990908203006.16777.rocketmail@web901.mail.yahoo.com>

Nimar Arora <nimar_arora@yahoo.com> writes:
> I'm using MINGW. i.e. the version which relies only on CRTDLL.
> 
> -- Nimar
> 
> --- Eli Zaretskii <eliz@gnu.org> wrote:
> > 
> > > I recently downloaded and installed GCC-2.95 on
> > Win95 and compiled the
> > > standard Hello World program. The program runs
> > fine but after running
> > > 'strings' on the executable, a.exe, I found the
> > following HTML tags
> > > which include private information like login name
> > on Web mail servers.
> > > What is going on?
> > 
> > Please always make a point of telling which port of
> > GCC are you
> > using.  If it is the DJGPP port, I might have a
> > solution for this
> > problem.

This is an OS (if you can call Windows 9x an OS ;-) issue, which does
not zero out the file area if you seek past the end and then write.
NT does handle it correctly, and I believe Windows 2000 does as well.

You can always complain to the OS vendor as to why they allow such a
hole in the OS.

I suppose we'll have to deal with this in binutils sooner or later.
It's on my todo list (and I have contributed patches that I haven't
had time to look at yet). Binutils maintainer Ian Taylor knows about
this problem as well. Cygwin works around this issue, but since Mingw
uses Microsoft's own runtime, we can't do the same for Mingw without
some ugly hacks.

Regards,
Mumit


WARNING: multiple messages have this Message-ID
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Nimar Arora <nimar_arora@yahoo.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gcc@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: Strange strings in GCC compiled code
Date: Thu, 30 Sep 1999 18:02:00 -0000	[thread overview]
Message-ID: <199909082026.PAA24899@mercury.xraylith.wisc.edu> (raw)
Message-ID: <19990930180200.X36Bxf3fE0gXN0yk2k-n2lm1YMuDCQgzDWb25OiKPjc@z> (raw)
In-Reply-To: <19990908203006.16777.rocketmail@web901.mail.yahoo.com>

Nimar Arora <nimar_arora@yahoo.com> writes:
> I'm using MINGW. i.e. the version which relies only on CRTDLL.
> 
> -- Nimar
> 
> --- Eli Zaretskii <eliz@gnu.org> wrote:
> > 
> > > I recently downloaded and installed GCC-2.95 on
> > Win95 and compiled the
> > > standard Hello World program. The program runs
> > fine but after running
> > > 'strings' on the executable, a.exe, I found the
> > following HTML tags
> > > which include private information like login name
> > on Web mail servers.
> > > What is going on?
> > 
> > Please always make a point of telling which port of
> > GCC are you
> > using.  If it is the DJGPP port, I might have a
> > solution for this
> > problem.

This is an OS (if you can call Windows 9x an OS ;-) issue, which does
not zero out the file area if you seek past the end and then write.
NT does handle it correctly, and I believe Windows 2000 does as well.

You can always complain to the OS vendor as to why they allow such a
hole in the OS.

I suppose we'll have to deal with this in binutils sooner or later.
It's on my todo list (and I have contributed patches that I haven't
had time to look at yet). Binutils maintainer Ian Taylor knows about
this problem as well. Cygwin works around this issue, but since Mingw
uses Microsoft's own runtime, we can't do the same for Mingw without
some ugly hacks.

Regards,
Mumit


  reply	other threads:[~1999-09-08 14:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-08 13:32 Nimar Arora
1999-09-08 14:39 ` Mumit Khan [this message]
1999-09-30 18:02   ` Mumit Khan
1999-09-30 18:02 ` Nimar Arora
  -- strict thread matches above, loose matches on Subject: below --
1999-09-07 15:52 Nimar Arora
1999-09-07 16:21 ` Russ Allbery
1999-09-30 18:02   ` Russ Allbery
1999-09-08  1:46 ` Eli Zaretskii
1999-09-30 18:02   ` Eli Zaretskii
1999-09-08  1:50 ` Eli Zaretskii
1999-09-08  2:10   ` Nick Ing-Simmons
1999-09-30 18:02     ` Nick Ing-Simmons
1999-09-08  4:25   ` Eli Zaretskii
1999-09-30 18:02     ` Eli Zaretskii
1999-09-30 18:02   ` Eli Zaretskii
1999-09-30 18:02 ` Nimar Arora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199909082026.PAA24899@mercury.xraylith.wisc.edu \
    --to=khan@xraylith.wisc.edu \
    --cc=eliz@gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=nimar_arora@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).