]> git.ipfire.org Git - thirdparty/asterisk.git/commit
general: Fix memory Corruption in __ast_string_field_ptr_build_va.
authorWalter Doekes <walter+asterisk@wjd.nu>
Mon, 11 Aug 2014 10:24:06 +0000 (10:24 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 11 Aug 2014 10:24:06 +0000 (10:24 +0000)
commit6d6c11977703ca8d75e379107def7336c08a7ca7
tree550307950cdf7569ca613e5a2b3132417646f38c
parentedca0bd412b712ab31cf108e9ffcdf1d93172fb0
general: Fix memory Corruption in __ast_string_field_ptr_build_va.

If the space left in a stringfield is between 0 and
(alignof(ast_string_field_allocation)-1) adding new data would cause
memory corruption, because we would assume enough space (unsigned
underrun).

Thanks Arnd Schmitter for reporting and finding out the cause!

ASTERISK-23508 #close
Reported by: Arnd Schmitter
Tested by: Arnd Schmitter, JoshE

Review: https://reviewboard.asterisk.org/r/3898/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@420680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/utils.c