1. 05 7月, 2013 1 次提交
  2. 04 7月, 2013 1 次提交
  3. 03 7月, 2013 17 次提交
  4. 02 7月, 2013 5 次提交
  5. 01 7月, 2013 3 次提交
    • Ken Rice's avatar
      --resolve FS-5566 · c2c8fba1
      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>
      c2c8fba1
    • Anthony Minessale's avatar
    • Anthony Minessale's avatar
      FS-5565 --resolve · e1ed386b
      Anthony Minessale 提交于
      e1ed386b
  6. 28 6月, 2013 7 次提交
  7. 27 6月, 2013 6 次提交