delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/19/06:08:00

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP Bug?
Date: Tue, 19 Dec 2000 10:59:02 GMT
Organization: always disorganized
Lines: 23
Message-ID: <3a3f3f3a.7289050@news.freeserve.net>
References: <t3u557e5psib7a AT corp DOT supernews DOT com>
NNTP-Posting-Host: modem-239.emperor-angel.dialup.dialup.pol.co.uk
X-Trace: newsg3.svr.pol.co.uk 977223546 32203 62.137.6.239 (19 Dec 2000 10:59:06 GMT)
NNTP-Posting-Date: 19 Dec 2000 10:59:06 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hazel Moore wrote:

> Here is a bug that I think should be verified by you guys before I report it
> (as it could be my fault). This is an exact source code listing:
> 
> // this program demonstates a bug, generating a callframe traceback
> 
> struct Intptrholder
> {
>         int * intinstruct;
> };
> 
> int main()
> {
>         int * intptr;
>         Intptrholder * intptrholder;
>         intptrholder->intinstruct = intptr;
>         return 0;
> }

There is indeed a bug here - but it's in your own code.
You are dereferencing intptrholder, which is an uninitialized
pointer.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019