summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-06-29 13:37:03 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2018-11-05 20:13:31 +0000
commit5737d31aac51360cc1eb412ef059e36147c9d6d6 (patch)
treeacd58a0bd317654fd8fdaf5a788cf27a75988ea5 /regcomp.c
parentadf1b5d28a4fd0e20bbbb72cab062fdd520cb065 (diff)
downloadperl-5737d31aac51360cc1eb412ef059e36147c9d6d6.tar.gz
Perl_my_setenv(); handle integer wrap
RT #133204 Wean this function off int/I32 and onto UV/Size_t. Also, replace all malloc-ish calls with a wrapper that does overflow checks, In particular, it was doing (nlen + vlen + 2) which could wrap when the combined length of the environment variable name and value exceeded around 0x7fffffff. The wrapper check function is probably overkill, but belt and braces... NB this function has several variant parts, #ifdef'ed by platform type; I have blindly changed the parts that aren't compiled under linux. (cherry picked from commit 34716e2a6ee2af96078d62b065b7785c001194be)
Diffstat (limited to 'regcomp.c')
0 files changed, 0 insertions, 0 deletions