Commit Graph

4 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 9020699e0a This patch fixes bug 10411. I added a new regression test, some regression test cleanups
18 years ago
Steve Murphy fd54b47404 These mods fix bug 9623, where an '@' in the eswitch contents causes a syntax error. I also updated the regressions.
19 years ago
Steve Murphy dc04209898 Bug 8128 fixed in this release via these changes
19 years ago