Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libICE
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • lib
  • libICE
  • Issues
  • #4

Closed
Open
Created Nov 04, 2015 by Bugzilla Migration User@bugzilla-migration

libICE : Dereference pointer before NULL check

Submitted by mah..@..ng.com

Assigned to Xorg Project Team

Link to original bug (#92808)

Description

Created attachment 119394 patch file

File where error is: src/connect.c Function where error is: IceOpenConnection Line of Error: 226

v1.0.9 Code: iceConn->connect_to_you = malloc (sizeof (_IceConnectToYouInfo)); iceConn->connect_to_you->auth_active = 0;

malloc() is used for memory allocation to a pointer iceConn->connect_to_you. Malloc can return NULL so NULL check must apply on iceConn->connect_to_you before dereferencing it.

Please check attached patch to solve the issue.

Attachment 119394, "patch file":
0001-libICE-Dereference-pointer-before-NULL-check.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking