• Ken Rice's avatar
    --resolve FS-5566 · f721a259
    Ken Rice 提交于
    When you use $12345 in regex substitutions, it isn't obvious
    whenever you mean $1-concatenated-2345 or $12-concatenated-345
    or any other variation.  In all other languages, in order to
    solve this ambiguity, a braces {} are allowed to be used to
    separate variable name (or a reference) from surrounding text,
    like ${1}2345 or ${12}345.  Use the same for freeswitch too.
    
    While at it, fix a buffer overflow as well: the index[] variable
    which is used to copy the "variable" name is 10 chars long, but
    it is used in the code without bounds checking, so a reference
    which is >9 chars long ($1234567890) will overflow the buffer,
    crashing freeswitch.
    
    And another overflow is in the way how size of the "substituted"
    variable is handled.  First, in the outer loop, we compare the
    wrong variable with the size of `substituted' buffer (amount of
    bytes we took from the source instead of amount of bytes we
    used in `substituted').  And second, when actual regex match
    is being substitured, amount of room in `substituted' variable
    is not checked at all.
    
    Patch contributed by Michael Tokarev <mjt@tls.msk.ru>
    f721a259
名称
最后提交
最后更新
build 正在载入提交数据...
clients/flex 正在载入提交数据...
cmake_modules 正在载入提交数据...
conf 正在载入提交数据...
debian 正在载入提交数据...
docs 正在载入提交数据...
dtd 正在载入提交数据...
freeswitch.xcodeproj 正在载入提交数据...
fscomm 正在载入提交数据...
htdocs 正在载入提交数据...
libs 正在载入提交数据...
patches 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
support-d 正在载入提交数据...
w32 正在载入提交数据...
web 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
CMakeLists.txt 正在载入提交数据...
Freeswitch.2005.unsupported.sln 正在载入提交数据...
Freeswitch.2008.express.unsupported.sln 正在载入提交数据...
Freeswitch.2008.sln.debug.bat 正在载入提交数据...
Freeswitch.2008.sln.release.bat 正在载入提交数据...
Freeswitch.2008.unsupported.sln 正在载入提交数据...
Freeswitch.2010.express.sln 正在载入提交数据...
Freeswitch.2010.sln 正在载入提交数据...
Freeswitch.2012.sln 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
acinclude.m4 正在载入提交数据...
bootstrap.sh 正在载入提交数据...
cc.sh 正在载入提交数据...
cluecon.tmpl 正在载入提交数据...
cluecon2.tmpl 正在载入提交数据...
cluecon2_small.tmpl 正在载入提交数据...
cluecon_small.tmpl 正在载入提交数据...
configure.in 正在载入提交数据...
devel-bootstrap.sh 正在载入提交数据...
erlang.spec 正在载入提交数据...
freeswitch-sounds-en-us-callie.spec 正在载入提交数据...
freeswitch-sounds-music.spec 正在载入提交数据...
freeswitch-sounds-ru-RU-elena.spec 正在载入提交数据...
freeswitch.spec 正在载入提交数据...
swig_common.i 正在载入提交数据...