Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixes segfault issue recorded in #406#419

Merged
johnhaley81 merged 4 commits intomasternodegit/nodegit:masterfrom
fix-credentials-segfaultnodegit/nodegit:fix-credentials-segfaultCopy head branch name to clipboard
Feb 24, 2015
Merged

Fixes segfault issue recorded in #406#419
johnhaley81 merged 4 commits intomasternodegit/nodegit:masterfrom
fix-credentials-segfaultnodegit/nodegit:fix-credentials-segfaultCopy head branch name to clipboard

Conversation

@tbranyen
Copy link
Member

A segfault was occuring when passing null values to NanNew, this patch
will the bug for const char * and unsigned int C types. We'll
definitely need to add more in the future.

@tbranyen
Copy link
Member Author

@lange if you could give this a branch a shot, I believe it'll address your issue.

@tbranyen tbranyen force-pushed the fix-credentials-segfault branch from c6c66a8 to f719bbe Compare February 24, 2015 00:51
@johnhaley81
Copy link
Collaborator

👍 nice going tbranyen

If you attempt to clone a private repository without passing along a
username, `NULL` will make `NanNew` very upset.
A segfault was occuring when passing null values to `NanNew`, this patch
will the bug for `const char *` and `unsigned int` C types.  We'll
definitely need to add more in the future.
This allowed us to reuse folders.  I also fixed the tests to allow use a
certificate check callback (where required).
@johnhaley81 johnhaley81 force-pushed the fix-credentials-segfault branch from d2ec5be to ad310b3 Compare February 24, 2015 18:43
@johnhaley81
Copy link
Collaborator

I think the appveyor breaking is unrelated to this PR. I'm going to merge this in and look into fixing the breaking CI in a different PR. Don't want it holding up all of these PR's (#416 and #422).

johnhaley81 added a commit that referenced this pull request Feb 24, 2015
@johnhaley81 johnhaley81 merged commit 663f693 into master Feb 24, 2015
@johnhaley81 johnhaley81 deleted the fix-credentials-segfault branch February 24, 2015 19:34
@tbranyen tbranyen modified the milestone: 0.3.0 Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.