]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commit
Replace snprintf calls in linker.
authorChristopher Ferris <cferris@google.com>
Wed, 27 Aug 2014 03:48:11 +0000 (20:48 -0700)
committerThe Android Automerger <android-build@google.com>
Wed, 27 Aug 2014 23:12:09 +0000 (16:12 -0700)
commit20dc3f8fa4b192d902d58f496ae15ff33faa78ac
treea6879ce2601c09ad9773fadf2118d86491cba53a
parent54a6221cc21c9fa2be0e5ca77ea7cd76fabfd096
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