Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-coresight-backports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-coresight-backports
  • Repository
  • linux-coresight-backports
  • drivers
  • gpu
  • drm
  • amd
  • amdgpu
  • df_v3_6.c
Find file Blame History Permalink
  • Colin Ian King's avatar
    drm/amdgpu/df: fix potential array out-of-bounds read · 036286e2
    Colin Ian King authored May 30, 2018
    The comparison with the number of elements in array df_v3_7_channel_number
    is off-by-one and can produce an array out-of-bounds read if
    fb_channel_number is equal to the number of elements of the array. Fix
    this by changing the comparison to >= instead of >.
    
    Detected by CoverityScan, CID#1469489 ("Out-of-bounds read")
    
    Fixes: 13b58150
    
     ("drm/amdgpu/df: implement df v3_6 callback functions (v2)")
    Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    036286e2