Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 884
    • Issues 884
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • GLib
  • Repository
Switch branch/tag
  • glib
  • glib
  • gmarkup.c
Find file BlameHistoryPermalink
  • Philip Withnall's avatar
    gmarkup: Fix unvalidated UTF-8 read in markup parsing error paths · cec71705
    Philip Withnall authored Jul 30, 2018
    
    
    When formatting the error messages for markup parsing errors, the parser
    was unconditionally reading a UTF-8 character from the input buffer —
    but the buffer might end with a partial code sequence, resulting in
    reading off the end of the buffer by up to three bytes.
    
    Fix this and add a test case, courtesy of pdknsk.
    Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
    
    https://gitlab.gnome.org/GNOME/glib/issues/1462
    cec71705