Bug 313281
Summary: | gparted crashes when compiled with latest glibc | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Deji Akingunola <dakingun> | ||||
Component: | gparted | Assignee: | Deji Akingunola <dakingun> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | jakub, jimhayward | ||||
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: | 2007-10-30 21:08:52 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: | |||||||
Attachments: |
|
Description
Deji Akingunola
2007-09-30 20:00:17 UTC
That is a bug in gparted. See http://www.opengroup.org/onlinepubs/009695399/functions/realpath.html The buffer pointed to by second argument must be at least PATH_MAX bytes long, or the second argument to realpath must be NULL (GNU extension and upcoming POSIX version; if NULL, the buffer is malloced). Jakub, Thanks for explanation. I 'fixed' it by using NULL as the second argument, and the crash is gone. Please make sure that what realpath returned is then freed, otherwise you introduced a memory leak. Created attachment 242691 [details]
Patch
This isn't the best way to fix this since realpath(path, NULL) is a
non-standard GNU extension. Definitely not how I would consider fixing this
upstream (the upstream project appears to be dead). But since this effects the
Fedora package only, I don't really see a problem.
Thanks for the patch Jim, applied. |