Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • athena athena
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Jira
    • Jira
  • Merge requests 161
    • Merge requests 161
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • atlasatlas
  • athenaathena
  • Merge requests
  • !60311

Return NULL when reading non existing APR objects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Marcin Jerzy Nowak requested to merge mnowak/athena:APR.readObject.OOB into master Feb 02, 2023
  • Overview 6
  • Commits 1
  • Pipelines 1
  • Changes 1

Simple fix to return NULL when trying to read an object that does not exist (OID2 is bigger than the container size).
At the same time, the return code is not set to Error, because that would produce ERROR printouts when somebody may be just iterating over all objects in the container.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: APR.readObject.OOB