diff options
-rw-r--r-- | runtime/staprun/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/staprun/ctl.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog index 018e8024..959a4fc1 100644 --- a/runtime/staprun/ChangeLog +++ b/runtime/staprun/ChangeLog @@ -1,3 +1,9 @@ +2007-07-09 David Smith <dsmith@redhat.com> + + * ctl.c (read_buffer_info): Make sure buffer is big enough to hold + a full path. + (init_ctl_channel): Ditto. + 2007-07-02 Martin Hunt <hunt@redhat.com> * symbols.c (get_sections): Set data pointer to the lowest address diff --git a/runtime/staprun/ctl.c b/runtime/staprun/ctl.c index 2996174b..53c27190 100644 --- a/runtime/staprun/ctl.c +++ b/runtime/staprun/ctl.c @@ -15,7 +15,7 @@ /* This is only used in the old relayfs code */ static void read_buffer_info(void) { - char buf[128]; + char buf[PATH_MAX]; struct statfs st; int fd, len, ret; @@ -48,7 +48,7 @@ static void read_buffer_info(void) int init_ctl_channel(void) { - char buf[128]; + char buf[PATH_MAX]; struct statfs st; if (statfs("/sys/kernel/debug", &st) == 0 && (int) st.f_type == (int) DEBUGFS_MAGIC) |