-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
In https://github.com/blackjack/webcam/blob/master/webcam.go#L276, a user may accidentally (due to a bug) call Close more than once. This is particularly dangerous since we're holding to a raw file descriptor number. This could play out as:
- First close (normal, expected)
- Some other code opens a file and gets that now unused file descriptor number
- Second close (bug, unexpected) and now the other code has its file descriptor unexpectedly modified
Metadata
Metadata
Assignees
Labels
No labels