diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-29 18:42:05 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-29 18:42:05 +0000 |
commit | bccc33a36b26d50bafa793a3dc5f70a65bfc1cfe (patch) | |
tree | 5d7b3daa9514bd03852cfb4be41ff8fb53656041 | |
parent | c844530e0d28251021859d69e2765ddbdba8c8a4 (diff) | |
download | gcc-bccc33a36b26d50bafa793a3dc5f70a65bfc1cfe.tar.gz |
* mmap.c (backtrace_vector_release): Correct last patch: add
aligned, not size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192956 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libbacktrace/ChangeLog | 5 | ||||
-rw-r--r-- | libbacktrace/mmap.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index f04f1d5dd0d..91e1c9eccd4 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,5 +1,10 @@ 2012-10-29 Ian Lance Taylor <iant@google.com> + * mmap.c (backtrace_vector_release): Correct last patch: add + aligned, not size. + +2012-10-29 Ian Lance Taylor <iant@google.com> + * mmap.c (backtrace_vector_release): Make sure freed block is aligned on 8-byte boundary. diff --git a/libbacktrace/mmap.c b/libbacktrace/mmap.c index 25fdc21a9f7..d3313c7cf1e 100644 --- a/libbacktrace/mmap.c +++ b/libbacktrace/mmap.c @@ -240,7 +240,8 @@ backtrace_vector_release (struct backtrace_state *state, aligned = (size + 7) & ~ (size_t) 7; alc -= aligned - size; - backtrace_free (state, (char *) vec->base + size, alc, error_callback, data); + backtrace_free (state, (char *) vec->base + aligned, alc, + error_callback, data); vec->alc = 0; return 1; } |