Red Hat Bugzilla – Bug 492861
POSIX_MAX_PATH vs MAX_PATH problem in muttlib.c:810
Last modified: 2009-04-01 11:08:45 EDT
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
__realpath_chk (const char *buf, char *resolved, size_t resolvedlen)
if (resolvedlen < PATH_MAX)
return __realpath (buf, resolved);
Fixed in mutt-1.5.19-4.fc11. Thanks.