aboutsummaryrefslogtreecommitdiffstats
path: root/libc/stdio/__vsnprintf_chk.c
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-06-11 14:29:30 -0700
committerNick Kralevich <nnk@google.com>2012-06-11 16:00:52 -0700
commit85b06f9365ae6776deb9fcf09f450f777ace9e34 (patch)
tree29a0bf8560a5733ff8979af6d8dfcfa24def7a1a /libc/stdio/__vsnprintf_chk.c
parent76656afc6dd069fcfda5768e6e54bb85e4e99942 (diff)
downloadandroid_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