Bug 492861
| Summary: | POSIX_MAX_PATH vs MAX_PATH problem in muttlib.c:810 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Fabrice Bellet <fabrice> |
| Component: | mutt | Assignee: | Miroslav Lichvar <mlichvar> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | fabrice, lmacken, mlichvar, pertusus |
| 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: | 2009-04-01 15:08:45 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: | |||
Fixed in mutt-1.5.19-4.fc11. Thanks. |
the rawhide version of mutt fails with a 'buffer overflow' error, because of the size check of the 2nd parameter of function realpath(). tmp is defined as a char tmp[_POSIX_PATH_MAX], but its size is expected to be at least PATH_MAX (4096 vs 256) in the glibc check from realpath_chk.c:30 char * __realpath_chk (const char *buf, char *resolved, size_t resolvedlen) { #ifdef PATH_MAX if (resolvedlen < PATH_MAX) __chk_fail (); return __realpath (buf, resolved); #else