]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix crash in scanner
authorJürg Billeter <j@bitron.ch>
Fri, 10 Jul 2009 22:50:08 +0000 (23:50 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 10 Jul 2009 22:50:08 +0000 (23:50 +0100)
vala/valascanner.vala

index cdac12858d31199fa8f976160e8ed0d861430f76..6f09a13ce76e1886907907dbc8ca4df032f89a6f 100644 (file)
@@ -1069,7 +1069,7 @@ public class Vala.Scanner {
                        current++;
                        column++;
                }
-               if (bol && current[0] == '#') {
+               if (bol && current < end && current[0] == '#') {
                        pp_directive ();
                        return true;
                }