]> 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:36:38 +0000 (10:36 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Mon, 11 Aug 2014 10:36:38 +0000 (10:36 +0000)
commit9aba91e5a6990d73c0917cc150de05eaf5a511f2
tree0c7787cb2e3717385a70dc99c35d308653884a04
parentd43da8846c42e34c85175b42dee377c5d01858b9
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/
........

Merged revisions 420680 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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