Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 339
    • Issues 339
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Merge requests
  • !497

Limit the number of elements in a consdiff hash line.

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Nick Mathewson requested to merge nickm/tor:bug40472_case1_035 into maint-0.3.5 Dec 06, 2021
  • Overview 6
  • Commits 1
  • Pipelines 1
  • Changes 2

This avoids performing and then freeing a lot of small mallocs() if the hash line has too many elements.

Fixes one case of bug #40472 (closed); resolves OSS-Fuzz 38363. Bugfix on 0.3.1.1-alpha when the consdiff parsing code was introduced.

I'm opening this fix against 0.3.5, but I do think it's safe not to backport it.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bug40472_case1_035