Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
6c61e173
Commit
6c61e173
authored
3 years ago
by
Thomas Guillem
Committed by
Nicolas Pomepuy
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
libvlc: fix crash with vlcNewStringUTF
psz_string can be NULL.
parent
164d8db5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1060
libvlc: fix crash with vlcNewStringUTF
Pipeline
#126103
passed with stage
Stage:
in 18 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libvlc/jni/utils.h
+2
-0
2 additions, 0 deletions
libvlc/jni/utils.h
with
2 additions
and
0 deletions
libvlc/jni/utils.h
+
2
−
0
View file @
6c61e173
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment