Avoid integer overflows around realloc calls resulting in potential
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 7 Feb 2015 21:24:06 +0000 (21:24 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 7 Feb 2015 21:24:06 +0000 (21:24 +0000)
commit128482cfc46721f54f08c8c7b910c4e4651c89cd
treedaaa8acf242fc75d7a9fd3e07119417a57224efe
parent710e70bb70cb5501ab920393e613cbfeda45b604
Avoid integer overflows around realloc calls resulting in potential
heap. Problem identified by Guido Vranken. Changes differ from original
OpenBSD sources by not depending on non-portable reallocarray.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228507 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/regcomp.c