🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4905

BoundsChecker and fgets fmalloc problems

#4905
From: Brian Gregory
Date: Mon, 18 Mar 1996 19:42
20 lines
958 bytes
I am using Bounds Checker v2.5, and am having a problem finding a
memory leak it is reporting...

Example:

fgets( szBuf, 799, fpIn );

szBuf is an 800 character buffer (pre-sized array)
fpIn IS a valid pointer
no memory is corrupt before the fgets line
The application is a windows app, written in straight C with a large
memory model.

Any help on resolving this recurrent problem, or just an indication
that this is perhaps an erroneous error reported by Boundschecker
would be greatly appreciated.

Thanks, 
Brian Gregory
bri@primenet.com
Technical Details
Message-ID: <4ikea9$gb5@nnrp1.news.primenet.com>
Path: arc1-ca.pugleaf.net!news.primenet.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.primenet.com!not-for-mail
From: bri@primenet.com (Brian Gregory)
Newsgroups: comp.std.c
Subject: BoundsChecker and fgets fmalloc problems
Date: 18 Mar 1996 12:42:01 -0700
Organization: Primenet Services for the Internet
Sender: root@primenet.com
Message-ID: <4ikea9$gb5@nnrp1.news.primenet.com>
X-Posted-By: ip16-021.phx.primenet.com
X-Newsreader: Forte Free Agent 1.0.82