Commits

Anonymous committed 9b6e2fa

missing the range check in x and =

Comments (0)

Files changed (1)

 
 Action cmd_x(Command *cmd)
 {
-    USE(cmd);
+    if (!in_range(cmd))
+        return noop;
+
     char *tmp  = patt_space;
     patt_space = hold_space;
     hold_space = tmp;
 
 Action cmd_equal(Command *cmd)
 {
-    USE(cmd);
+    if (!in_range(cmd))
+        return noop;
     if (printf("%zu\n", line_number) < 0) {
         serror();
         return error;