OSDN Git Service

Replace snprintf() with __libc_format_buffer()
authorTom Cherry <tomcherry@google.com>
Tue, 26 Jan 2016 23:27:07 +0000 (15:27 -0800)
committerTom Cherry <tomcherry@google.com>
Tue, 26 Jan 2016 23:51:01 +0000 (23:51 +0000)
commit8352475c756663fb22fce851a5ff9b9d8320f4de
tree787da5e520fe3a9426e9cb5fb3fb4ea39105c84e
parentced73ee45e04a991ce1295a38364568a17884eed
Replace snprintf() with __libc_format_buffer()

If snprintf() is called from the linker, it may erroneously return a
null string.  The libc internal __libc_format_buffer() does not have
this problem, so it is now used instead.

Bug: 26756577

Change-Id: I37a97e27f59b3c0a087f54a6603cc3aff7f07522
libc/bionic/system_properties.cpp