Open denisenkom opened 6 months ago
Thanks for this. Will review.
But this issue should not be occurring. Please open an issue or start a mailing list thread with further details of gst1-java-core, JNA and Java / OS versions. And attach the full hs_err file if you have it.
Thank you! Created issue: https://github.com/gstreamer-java/gst1-java-core/issues/280
Problem
JNA reads structure content for structures passed by reference. In this particular case since g_error_free function releases memory used by structure passed to it, this results in "read after free" bug. This leads to segmentation fault.
Here is example stack trace:
Solution
Use raw pointer variant of g_error_free function to prevent reading of a released structure.