author | Christopher Ferris <cferris@google.com> | |
Wed, 27 Aug 2014 03:48:11 +0000 (20:48 -0700) | ||
committer | The Android Automerger <android-build@google.com> | |
Wed, 27 Aug 2014 23:12:09 +0000 (16:12 -0700) | ||
commit | 20dc3f8fa4b192d902d58f496ae15ff33faa78ac | |
tree | a6879ce2601c09ad9773fadf2118d86491cba53a | tree | snapshot (tar.xz tar.gz zip) |
parent | 54a6221cc21c9fa2be0e5ca77ea7cd76fabfd096 | commit | diff |
Replace snprintf calls in linker.
When enabling debug malloc, the snprintf calls in the linker fails to
update the buffer.
The problem is that snprintf makes a call to pthread_getspecific that
returns a valid pointer, but the data it points to is zero. This should
never happen and causes the snprintf to stop and do nothing.
Temporarily replace snprintf with a different implementation to work
around this issue.
Bug: 16874447
Bug: 17302493
Change-Id: I7a500f28adf153150cf2812fae745ff41f1c48d3
When enabling debug malloc, the snprintf calls in the linker fails to
update the buffer.
The problem is that snprintf makes a call to pthread_getspecific that
returns a valid pointer, but the data it points to is zero. This should
never happen and causes the snprintf to stop and do nothing.
Temporarily replace snprintf with a different implementation to work
around this issue.
Bug: 16874447
Bug: 17302493
Change-Id: I7a500f28adf153150cf2812fae745ff41f1c48d3
linker/debugger.cpp | diff | blob | history | |
linker/linker.cpp | diff | blob | history |