ares_inet_ntop: fix off by one error triggering out of bounds write
authorYang Tse <yangsita@gmail.com>
Thu, 16 Dec 2010 18:46:23 +0000 (19:46 +0100)
committerYang Tse <yangsita@gmail.com>
Thu, 16 Dec 2010 18:46:23 +0000 (19:46 +0100)
commit0d738bab0d82347aa17dd3bc4a462e5c02596061
treef80839a7d05d2a2a4f092fbe04bd898c625d5c32
parentb9959cbf366573dfda7e8a9506b58bfcc41335c8
ares_inet_ntop: fix off by one error triggering out of bounds write

ares_inet_ntop would trigger an out of bounds write when the representation
of the address required 15 characters, due to not taking in account null
termination character.

Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
inet_ntop.c