Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • David Goulet
  • Tor
  • Repository
Switch branch/tag
  • tor
  • changes
  • bug28202
Find file BlameHistoryPermalink
  • Nick Mathewson's avatar
    Fix possible UB in an end-of-string check in get_next_token(). · 368413a3
    Nick Mathewson authored Oct 25, 2018
    Remember, you can't check to see if there are N bytes left in a
    buffer by doing (buf + N < end), since the buf + N computation might
    take you off the end of the buffer and result in undefined behavior.
    
    Fixes 28202; bugfix on 0.2.0.3-alpha.
    368413a3