Article View: comp.std.c
Article #4906BoundsChecker and fgets fmalloc problems
From: Brian Gregory
Date: Mon, 18 Mar 1996 19:48
Date: Mon, 18 Mar 1996 19:48
23 lines
1099 bytes
1099 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. The problem is Boundschecker consistently reports memory leaks for the larger buffer size mallocs contained WITHIN the fgets function... 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:
<4ikelh$gji@nnrp1.news.primenet.com>Path:
arc1-ca.pugleaf.net!news.primenet.com!not-for-mailShow 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:48:01 -0700 Organization: Primenet Services for the Internet Sender: root@primenet.com Message-ID: <4ikelh$gji@nnrp1.news.primenet.com> X-Posted-By: ip16-021.phx.primenet.com X-Newsreader: Forte Free Agent 1.0.82