** Changed in: mksh
Status: Fix Committed => Fix Released
--
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 Released
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