Commit Graph

5 Commits (40cd95fc27bca0e9e3bebeb71c10703978541440)

Author SHA1 Message Date
Steve Murphy ed75fa38e9 closes issue #10834 ; where a null input to a switch statement results in a hangup; since switch is implemented with extensions, and the default case is implemented with a '.', and the '.' matches 1 or more remaining characters, the case where 0 characters exist isn't matched, and the extension isn't matched, and the goto fails, and a hangup occurs. Now, when a default case is generated, it also generates a single fixed extension that will match a null input. That extension just does a goto to the default extension for that switch. I played with an alternate solution, where I just tack an extra char onto all the patterns and the goto, but not the default case's pattern. Then even a null input will still have at least one char in it. But it made me nervous, having that extra char in , even if that's a pretty secret and low-level issue.
18 years ago
Steve Murphy c37666252d These changes fix the problems reported in bug 8090
19 years ago
Steve Murphy 1d2b76a0f8 added a -q for quiet, option to aelparse
20 years ago
Steve Murphy 980a79a24d This bug adds enhancement as per bug 7606, the -w
20 years ago
Russell Bryant 73ae55698f merge changes from team/murf/AEL-trunk-fixesonly
20 years ago