After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796497 - AccessViolationException when using webrtc.Emit
AccessViolationException when using webrtc.Emit
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other Windows
: Normal major
: 1.14.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-06-05 10:56 UTC by andy.green
Modified: 2018-07-03 18:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for pointer arithmetic error in DynamicSignal.cs (514 bytes, patch)
2018-06-05 10:56 UTC, andy.green
committed Details | Review

Description andy.green 2018-06-05 10:56:48 UTC
Created attachment 372552 [details] [review]
Fix for pointer arithmetic error in DynamicSignal.cs

When iterating through the SignalQuery.n_params pointer array, the offset added at each iteration is incorrect for all apart from the first iteration. The current implementation only adds 1 byte to the base pointer for every iteration, where it should be incremented by IntPtr.Size.

The bug occurs in https://github.com/GStreamer/gstreamer-sharp/blob/master/sources/custom/DynamicSignal.cs at line 386.

Attached is a patch to fix this error.
Comment 1 Thibault Saunier 2018-06-05 13:52:51 UTC
Attachment 372552 [details] pushed as 10f0476 - Fix for pointer arithmetic error in DynamicSignal.cs