Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • tests
  • compiler_tests
  • API_test.cpp
Find file
BlameHistoryPermalink
  • Kimmo Kinnunen's avatar
    Make ShBuiltInResources comparable with memcmp · 7c1cfd61
    Kimmo Kinnunen authored Oct 15, 2014
    Chromium builds a std::map with ShBuiltInResources as part of the key.
    Comparator for == and < are needed for the map implementation.
    
    Currently Chromium uses memcmp as the comparator. Padding
    in ShBuiltInResources causes uninitialized reads.
    
    Fix this by clearing the padding with memset during ShBuiltInResources
    initialization.
    
    Change-Id: I78aa3c59ce165503831aa2a67c96cf8af316c152
    Reviewed-on: https://chromium-review.googlesource.com/223431Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org>
    7c1cfd61
API_test.cpp 704 Bytes
EditWeb IDE
×

Replace API_test.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.