Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libX11 libX11
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure 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
  • Keith Packard
  • libX11libX11
  • Repository
Switch branch/tag
  • libx11
  • modules
  • im
  • ximcp
  • imInsClbk.c
Find file BlameHistoryPermalink
  • Keith Packard's avatar
    Copy locale modifiers when creating XimInstCallback [v2] · a3c0b5db
    Keith Packard authored Nov 17, 2020
    
    
    Locale modifiers may be freed whenever XSetLocaleModifiers gets
    called, even if the locale hasn't changed. This means that we cannot
    save a pointer to those modifiers in the XimInstCallback record and
    must, instead, make a copy of them instead.
    
    This fixes a problem uncovered when running wish under libasan as
    follows (on current Debian unstable):
    
    	$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.6 wish
    Reported-by: Vittorio Zecca's avatarVittorio Zecca <zeccav@gmail.com>
    Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
    
    v2:
    	Remove incorrect 'else' token found by @alanc
    a3c0b5db