Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libxml2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libxml2
  • Issues
  • #200
Closed
Open
Issue created Oct 25, 2020 by Nick Wellnhofer@nwellnhofMaintainer

xmlParseCharDataComplex never shrinks the input buffer

See discussion in #192 (closed).

Simple fix: nwellnhof/libxml2@99bda1e1

But performance-wise, it would be best to shrink the buffer as late as possible. This means to check the actual remaining bytes instead of the crude "every nth iteration" solution. Since we're processing UTF-8, we should shrink and grow if the buffer contains less than four bytes. Ideally, hitting EOF shouldn't trigger additional shrink/grow attempts.

Edited Oct 25, 2020 by Nick Wellnhofer
Assignee
Assign to
Time tracking