GStreamer: QGstSubtitleSink - bound check and leak fix
The buffer is not necessarily guaranteed to be null-terminated. It is
better to be defensive and pass the buffer size to fromUtf8. Furthermore
we were leaking a reference, so we provide a new raii type for GstMemory
Pick-to: 6.12 6.11 6.8
Change-Id: I216445f9bb78c87bf749c107c3e12c2ff9f6afba
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
| commit | b822a62fd9b0affc20860f173da18373eff67278 |
| parent | 9c0af44a78aba0cfeb31a5c0e775c43467da88db |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Wed, 19 Aug 2026 10:45:27 +0000 |