mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size.
* mmap.c (backtrace_vector_release): Correct last patch: add aligned, not size. From-SVN: r192956
This commit is contained in:
committed by
Ian Lance Taylor
parent
a5bc806c95
commit
8fe91dea4f
@@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user