OSDN Git Service

Replace snprintf calls in linker.
authorChristopher Ferris <cferris@google.com>
Wed, 27 Aug 2014 03:48:11 +0000 (20:48 -0700)
committerChristopher Ferris <cferris@google.com>
Wed, 27 Aug 2014 22:30:43 +0000 (15:30 -0700)
commit172955a4e30b88ce8239a7ef426b4e8903e9923c
treea6879ce2601c09ad9773fadf2118d86491cba53a
parent3f7635f4906c53fa744731efc35235456b7d93bf
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
linker/debugger.cpp
linker/linker.cpp