Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Fix a segfault caused by invalid Go pointer #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zagrodzki
Copy link
Collaborator

Do not pass a Go pointer to the C-land. Instead use the C pointer to struct_libusb_transfer as a key to the transfer map.

This addresses issue #50. The change is a backport of mechanism used in github.com/google/gousb.

struct_libusb_transfer as a key to the transfer map.
@zagrodzki zagrodzki requested a review from kylelemons June 13, 2017 10:25
@coveralls
Copy link

coveralls commented Jun 13, 2017

Coverage Status

Coverage increased (+0.06%) to 65.658% when pulling 70a69d2 on fix-invalid-pointer-access into 99e7ca4 on master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants