Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 309968 Details for
Bug 446199
*** buffer overflow detected ***: apachetop terminated
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
apachetop-0.12.6-maxpathlen.patch
apachetop-0.12.6-maxpathlen.patch (text/plain), 1.54 KB, created by
Robert Scheck
on 2008-06-21 14:22:14 UTC
(
hide
)
Description:
apachetop-0.12.6-maxpathlen.patch
Filename:
MIME Type:
Creator:
Robert Scheck
Created:
2008-06-21 14:22:14 UTC
Size:
1.54 KB
patch
obsolete
>Patch by Robert Scheck <robert@fedoraproject.org> for apachetop <= 0.12.6, which >adds some includes in order to have a real change to get MAXPATHLEN defined with >a valid value. Once MAXPATHLEN really gets filled with 128, it will just cause a >buffer overflow. > >See Red Hat Bugzilla #446199 (https://bugzilla.redhat.com/show_bug.cgi?id=446199) >for more information. This patch should solve the mentioned bug report and should >be sane enough to get included by upstream of apachetop for the next release. It >is important to run autoheader before ./configure to get these changes activated. > >--- apachetop-0.12.6/configure.ac 2005-10-27 18:39:25.000000000 +0200 >+++ apachetop-0.12.6/configure.ac.maxpathlen 2008-06-21 16:00:38.000000000 +0200 >@@ -34,7 +34,8 @@ > # Checks for header files. > AC_HEADER_STDC > AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h \ >- string.h strings.h sys/socket.h time.h sys/time.h]) >+ string.h strings.h sys/socket.h time.h sys/time.h \ >+ limits.h sys/param.h]) > > # Checks for typedefs, structures, and compiler characteristics. > #AC_HEADER_STDBOOL # not in 2.53? >--- apachetop-0.12.6/src/apachetop.h 2005-10-15 18:10:01.000000000 +0200 >+++ apachetop-0.12.6/src/apachetop.h.maxpatlen 2008-06-21 16:02:00.000000000 +0200 >@@ -89,8 +89,12 @@ > #define getMIN(a,b) (a < b ? a : b) > #define getMAX(a,b) (a > b ? a : b) > >-#ifndef MAXPATHLEN >-# define MAXPATHLEN 128 >+#ifdef HAVE_SYS_PARAM_H >+# include <sys/param.h> >+#endif >+ >+#if HAVE_LIMITS_H >+# include <limits.h> > #endif > > /* upon startup, each input file is put into an element of this array,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 446199
: 309968