| commit | 08677d0557284d36d3c898b1d876e65411069912 | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Thu May 19 16:09:17 2011 +0200 |
| committer | Petr Machata <pmachata@redhat.com> | Thu May 19 16:09:17 2011 +0200 |
| tree | b1c6bd2b3c78cf703d9198d5fbfb3774476d7798 | |
| parent | 4649a4cbb3bd6bc516c093adefa5dc7da8141b92 [diff] [blame] |
Fix a buffer overrun bug
diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c index 4e7733d..e1cadf7 100644 --- a/sysdeps/linux-gnu/proc.c +++ b/sysdeps/linux-gnu/proc.c
@@ -243,8 +243,8 @@ lte = hook_data->lte; if (library_num < MAX_LIBRARIES) { - library[library_num++] = strdup(lib_name); lte[library_num].base_addr = addr; + library[library_num++] = strdup(lib_name); } else { fprintf (stderr, "MAX LIBS REACHED\n");