You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
I figured that it took a Repository and I managed to do what I intended. However, I suppose it is a vulnerability that Tag.list does not check the object type and just proceeds, throwing a segmentation error to the developer. Shouldn't this error be caught instead and handled by nodegit?
Yes, but this is not specific to this case. Currently, our type checking between a js object, and a nodegit object isn't there. We're just able to check that whatever was passed in is an object.
I'll make an issue for that (as it is an issue), but it's far more generic, and requires a fix in our C++ templates. A manual solution definitely won't do.
Activity
maxkorp commentedon Sep 14, 2016
Tag.list takes a
Repositoryobject, not aRemote. What precisely are you aiming to do here, view the state of the tags on the remote?frederikbrinck commentedon Sep 15, 2016
I figured that it took a
Repositoryand I managed to do what I intended. However, I suppose it is a vulnerability that Tag.list does not check the object type and just proceeds, throwing a segmentation error to the developer. Shouldn't this error be caught instead and handled by nodegit?maxkorp commentedon Sep 15, 2016
Yes, but this is not specific to this case. Currently, our type checking between a js object, and a nodegit object isn't there. We're just able to check that whatever was passed in is an object.
I'll make an issue for that (as it is an issue), but it's far more generic, and requires a fix in our C++ templates. A manual solution definitely won't do.
maxkorp commentedon Sep 15, 2016
Closing this in lieu of that issue.
frederikbrinck commentedon Sep 15, 2016
Thanks for the clarification.