Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Files Files
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 378
    • Issues 378
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • 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
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • FilesFiles
  • Merge requests
  • !1001

Fix crash when copying an invalid file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Aleksandar Dezelin requested to merge dezelin/nautilus:#2376_nullpointererroringet_basename()whichleadstocrashwhenpasteazipformatfileinubuntu22.04 into master Oct 02, 2022
  • Overview 36
  • Commits 2
  • Pipelines 14
  • Changes 2

#2376 (closed) null pointer error in get_basename() which leads to crash when paste a zip format file in ubuntu 22.04

nautilus-file-operations: A call to glib function g_file_get_basename() returns NULL when the file name can't be parsed.

I have made a fix which checks if the function g_file_get_basename() returns NULL and handle it accordingly.

For the provided Python test application we are now showing the following dialog:

image

Fixes #2376 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: #2376_nullpointererroringet_basename()whichleadstocrashwhenpasteazipformatfileinubuntu22.04