2007-10-15 15:40:45 +00:00
..
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.
2007-10-03 14:23:00 +00:00
2006-10-25 14:32:08 +00:00
2005-11-29 18:24:39 +00:00
2006-07-07 02:20:28 +00:00
2006-09-29 22:47:40 +00:00
2007-10-03 18:20:07 +00:00
2007-10-14 15:24:52 +00:00
2007-10-15 15:40:45 +00:00
2006-09-19 21:07:49 +00:00
2006-07-07 00:48:40 +00:00
2005-11-29 18:24:39 +00:00
2006-08-21 02:11:39 +00:00
2007-10-12 15:40:35 +00:00
2007-09-13 23:11:27 +00:00