From 5215930b23d7924dd3e297796a0a6ba1c4886daa Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 9 Jul 2007 15:04:57 +0000 Subject: 2007-07-09 David Smith * ctl.c (read_buffer_info): Make sure buffer is big enough to hold a full path. (init_ctl_channel): Ditto. --- runtime/staprun/ChangeLog | 6 ++++++ 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 + + * 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 * 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) -- cgit