Uploaded image for project: 'Apache Lucy-Clownfish'
  1. Apache Lucy-Clownfish
  2. CLOWNFISH-44

Immutable Strings can be changed from Perl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Perl
    • None

    Description

      Perl can hold a reference to a string passed to Clownfish and subsequently change the string via this reference in a callback. This violates the assumption that Clownfish strings are immutable and can lead to crashes if the string buffer is reallocated.

      This scenario is somewhat contrived but for a proper fix, I think there's no other way than to always copy Perl strings passed as arguments. Fortunately, newer Perls support copy-on-write strings (default since 5.20) which makes this operation cheap.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nwellnhof Nikolas Wellnhofer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: