FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

git_filter_list_stream_data() crashes if stream fails to initialize · Issue #4063 · libgit2/libgit2 · GitHub

Repository navigation

git_filter_list_stream_data() crashes if stream fails to initialize #4063

Description

When git_filter_list_stream_data() calls stream_list_init() and it fails, stream_start will be set to NULL.

Before returning, git_filter_list_stream_data() always executes close_error = stream_start->close(stream_start); which will obviously crash if stream_start is NULL.

The fix is obvious but what it should be depends on what's the resolution for #4062, which is why I'm not providing a patch at this time.

PS: This was observed on 805b90a.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL