]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings.c: Fix __ast_str_helper() to always return a terminated string. 78/1478/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 19 Oct 2015 20:28:46 +0000 (15:28 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 21 Oct 2015 21:48:12 +0000 (16:48 -0500)
commitc8c65dfa413cff6ad5af12350564f37d4786fe01
tree50e2b05ee07600ca02f5cd05b168ac8ff7c14382
parentb271d4a28a607341f2374b6f8200b7f4f775e5e6
strings.c: Fix __ast_str_helper() to always return a terminated string.

Users of functions which call __ast_str_helper() such as the ones listed
below are likely to not check the return value for failure so ensuring
that the string is always nil terminated is a good safety measure.

ast_str_set_va()
ast_str_append_va()
ast_str_set()
ast_str_append()

Change-Id: I36ab2d14bb6015868b49329dda8639d70fbcae07
main/strings.c