diff options
author | Nick Kralevich <nnk@google.com> | 2012-06-11 14:29:30 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2012-06-11 16:00:52 -0700 |
commit | 85b06f9365ae6776deb9fcf09f450f777ace9e34 (patch) | |
tree | 29a0bf8560a5733ff8979af6d8dfcfa24def7a1a /libc/stdio/__vsnprintf_chk.c | |
parent | 76656afc6dd069fcfda5768e6e54bb85e4e99942 (diff) | |
download | android_bionic-85b06f9365ae6776deb9fcf09f450f777ace9e34.tar.gz android_bionic-85b06f9365ae6776deb9fcf09f450f777ace9e34.tar.bz2 android_bionic-85b06f9365ae6776deb9fcf09f450f777ace9e34.zip |
inet_ntop: pass the size of tmp to snprintf()
Fix runtime error when snprintf() FORTIFY_SOURCE protections are
applied. The size passed to snprintf() is larger than the tmp
buffer size, which results in a runtime assertion failure.
Even though the size passed to snprintf is larger than the buffer,
there's no danger of overwriting the buffer because of the format
string passed to snprintf.
Change-Id: I35f0217d25f3b9c6d04c5a76c3238759c235545a
Diffstat (limited to 'libc/stdio/__vsnprintf_chk.c')
0 files changed, 0 insertions, 0 deletions