Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1853

Crash if tags contain null character

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0b1
    • Labels:
      None
    • Environment:
      Windows 10

      Description

      When loading a file with a tag containing null characters and this tag is used for sorting, then Picard crashes with:

      (env) ~\devel\musicbrainz\picard [PICARD-1852-about-dialog]> python .\tagger.py
      W: 16:20:30,547 ui.mainwindow.create_actions:529: CDROM: discid library not found - Lookup CD functionality disabled
      Traceback (most recent call last):
      File ".\picard\ui\itemviews.py", line 872, in _lt_
      return self.sortkey(column) < other.sortkey(column)
      File ".\picard\ui\itemviews.py", line 877, in sortkey
      return natsort.natkey(self.text(column).lower())
      File ".\picard\util\natsort.py", line 36, in natkey
      return [int(s) if s.isdigit() else strxfrm(s)
      File ".\picard\util\natsort.py", line 36, in <listcomp>
      return [int(s) if s.isdigit() else strxfrm(s)
      ValueError: embedded null character

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                outsidecontext Philipp Wolfer
                Reporter:
                outsidecontext Philipp Wolfer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package
                  2.4.0b1