Skip to content
Snippets Groups Projects
Commit 6c61e173 authored by Thomas Guillem's avatar Thomas Guillem Committed by Nicolas Pomepuy
Browse files

libvlc: fix crash with vlcNewStringUTF

psz_string can be NULL.
parent 164d8db5
No related branches found
No related tags found
1 merge request!1060libvlc: fix crash with vlcNewStringUTF
Pipeline #126103 passed with stage
in 18 minutes and 15 seconds
......@@ -119,6 +119,8 @@ struct fields {
static inline jstring vlcNewStringUTF(JNIEnv* env, const char* psz_string)
{
if (psz_string == NULL)
return NULL;
for (int i = 0 ; psz_string[i] != '\0' ; ) {
uint8_t lead = psz_string[i++];
uint8_t nbBytes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment