Boo
  1. Boo
  2. BOO-333

Events can be directly raised outside of defining assembly.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently, Boo allows for events to be raised outside of the assembly they have been declared in.

      This raises security issues for those wishing to use an event-based environment with CAS. The follow code sample should not work and demonstrates the problem by invoking TriggerMe outside of its declaring assembly:

      """External assembly."""
      namespace BooEventlib

      import System

      class MyClass:
      def constructor():
      pass
      event TriggerMe as callable()

      """Consuming assembly."""
      namespace BooTesta

      import System
      import System.Drawing
      import System.Windows.Forms
      import BooEventlib

      m = MyClass()
      m.TriggerMe +=

      { print "LOL!" }

      m.TriggerMe() //Should not be possible.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arron Washington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: