Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • 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
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GL
  • mesamesa
  • Merge requests
  • !31

wsi/x11: Fix possible null pointer deference

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Yevhenii Kharchenko requested to merge fix/coverity-1476002 into master Apr 13, 2021
  • Overview 0
  • Commits 1
  • Pipelines 2
  • Changes 1

Fix defect CID-1476002 reported by Coverity Scan.

wsi_x11_get_connection() could return NULL in case of memory allocation failure. Added 'if' to catch this case, as it is done in all other usages of this function.

Fixes:

Signed-off-by: Yevhenii Kharchenko yevhenii.kharchenko@globallogic.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/coverity-1476002