Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xdgmime
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • xdgmime
  • Merge requests
  • !14

xdgmime: Prevent infinite loops from badly-formed MIME registrations

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Emmanuel Fleury requested to merge emmanuel.fleury/xdgmime:Prevent_infinite_loops into master Sep 28, 2021
  • Overview 5
  • Commits 1
  • Pipelines 3
  • Changes 1

Prevent recursion of _xdg_mime_cache_mime_type_subclass() with the same value of argument mime for the subclasses of a MIME type.

This was observed in GLib as https://gitlab.gnome.org/GNOME/glib/-/issues/1875, and a backtrace of the infinite loop is here: https://gitlab.gnome.org/GNOME/glib/-/issues/1875#note_592829.

Signed-off-by: Philip Withnall withnall@endlessm.com

Helps: #32

Edited Jun 17, 2022 by Philip Withnall
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: Prevent_infinite_loops