ftp.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Martin Str|mberg <ams AT dexter DOT ludd DOT ltu DOT se> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: General Protection Fault error is intermittent |
Date: | Sun, 23 Jun 2013 15:54:27 +0000 (UTC) |
Organization: | Aioe.org NNTP Server |
Lines: | 20 |
Message-ID: | <kq75ni$qvf$1@speranza.aioe.org> |
References: | <36e857f0-9899-496b-9fc6-32251e109888 AT googlegroups DOT com> <kpo3gh$4qo$1 AT speranza DOT aioe DOT org> <858cbded-7989-46e6-a997-93f842cdb3b0 AT googlegroups DOT com> |
NNTP-Posting-Host: | ftvAZcRvOze4hbePWaim7g.user.speranza.aioe.org |
X-Complaints-To: | abuse AT aioe DOT org |
User-Agent: | tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.9 (sun4u)) |
X-Notice: | Filtered by postfilter v. 0.8.2 |
Bytes: | 1859 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
K.J.Williams <lordwilliams1972 AT gmail DOT com> wrote: > Yeah I am not checking for a null pointer in the second use > of strtok() in my string_parser() to prevent me from copying > the string back to the calling statement. Thats not why > I posted my message here. You see, I wrote the program parstext.c > to test my function for the larger program that I want to implement > it for. But the problem is that DJGPP will not warn me about violating > memory boundaries with the parstext.c program as it does with the > bigger program WATT ( a project of several files ). I wanted to know > why isn't DJGPP warning me when I run parstext.c runs without complaints? > Its basically a segmented memory violation caused by strtok on following > calls. It's WINDOWS's fault. It's DPMI host doesn't provide the functionality that this requires. Try booting in plain DOS and run with CWSDPMI and you should get a crash if you're using NULL pointers. -- MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |