PennMUSH Community

Ticket #7516 (closed crash bug: fixed)

Opened 8 months ago

Last modified 8 months ago

1.8.3p6rc1 crash with @lock/switch (patch included)

Reported by: anonymous Assigned to: devteam
Priority: crash Milestone:
Keywords: Cc:
Visibility: Public

Description

In 1.8.3p6rc1, @lock/use x=y crashes in switch_find because
@lock doesn't actually take switches, despite the use of /
The patch below appears to fix the problem.

 - Javelin



*** 1.8.3/devel/src/command.c	Sat Dec 29 09:44:58 2007
--- soc3/src/command.c	Sat Dec 29 20:55:17 2007
***************
*** 444,449 ****
--- 444,451 ----
        return 0;
    } else {
      size_t len = strlen(sw);
+     if (!cmd->sw.mask)
+       return 0;
      sw_val = dyn_switch_list;
      while (sw_val->name) {
        if (SW_ISSET(cmd->sw.mask, sw_val->value)

Change History

12/30/07 06:41:21 changed by raevnos

  • priority changed from minor to crash.
  • status changed from new to closed.
  • resolution set to fixed.
  • type changed from incoming to crash bug.