Bug 5372
Summary: | Joe coredumps when using big files | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Pekka Savola <pekkas> |
Component: | joe | Assignee: | Cristian Gafton <gafton> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-03-31 19:50:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pekka Savola
1999-09-26 08:17:13 UTC
The problem is vclose() uses vsrm() to free vfile->name allocated from mktmp(), vclose() should use free() to free it. here is a patch: --- vfile.c~ Thu Oct 6 14:20:35 1994 +++ vfile.c Fri Mar 31 23:27:31 2000 @@ -255,7 +255,7 @@ { struct stat buf; VFILE *new=(VFILE *)malloc(sizeof(VFILE)); -new->name=vsncpy(NULL,0,sz(name)); +new->name=strdup(name); new->fd=open(name,O_RDWR); if(!new->fd) { @@ -288,7 +288,7 @@ { if(vfile->flags) unlink(vfile->name); else vflshf(vfile); - vsrm(vfile->name); + free(vfile->name); } if(vfile->fd) close(vfile->fd); free(deque(VFILE,link,vfile)); Thanks for the patch! Fixed in joe-2.8-25. |