Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 855
    • Issues 855
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and 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
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2974

gvariant-parser: Reject deeply-nested typedecls in text form variants

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:2782-gvariant-recursion-typedecl-fix into main Oct 18, 2022
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 2

Return G_VARIANT_PARSE_ERROR_RECURSION from g_variant_parse() if a typedecl is found within a text-form variant which would cause any part of the variant to exceed the maximum allowed recursion/nesting depth.

This fixes an oversight when G_VARIANT_MAX_RECURSION_DEPTH was implemented, which allowed typedecls to effectively multiply the size of an array if g_variant_parse() was parsing a text-form variant without a top-level concrete type specified.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2782 (closed) oss-fuzz#49462

Closes #2782 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2782-gvariant-recursion-typedecl-fix