Bug 7148 - in libc/gen/fts.c:fts_close, free is called before pointer access
Summary: in libc/gen/fts.c:fts_close, free is called before pointer access
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-07-02 22:20 UTC by kmayer
Modified: 1998-07-03 09:21 UTC (History)
0 users

See Also:


Attachments
file.diff (1.19 KB, patch)
1998-07-02 22:20 UTC, kmayer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kmayer 1998-07-02 22:20:00 UTC
fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that 
references sp. The free needs to follow ISSET

Fix: Here's a patch:
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-07-03 09:21:15 UTC
State Changed
From-To: open->closed

fixed, thanks