Committed revision 1005698219A4D72938C.

** Changed in: mksh
       Status: Triaged => Fix Committed

** Changed in: mksh
     Assignee: (unassigned) => Thorsten Glaser (mirabilos)

-- 
You received this bug notification because you are a member of mksh
Mailing List, which is subscribed to mksh.
Matching subscriptions: mkshlist-to-mksh-bugmail
https://bugs.launchpad.net/bugs/1453827

Title:
  complex substitutions inside complex substitutions (both using ADELIM)
  read past allocated memory

Status in mksh:
  Fix Committed

Bug description:
  Reproducer:

  valgrind --track-origins=yes --leak-check=no b/mksh -c
  'foo=${bar//baz/${sum:1}}'

  This seems to be a nesting problem. A closing ADELIM omits the CSUBST,
  which also irritates wdscan (which seems flakey anyway), which is what
  the substitution uses.

  Workaround: use temporary variables.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mksh/+bug/1453827/+subscriptions

Reply via email to