Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
535
Issue boards
Milestones
Wiki
Code
Merge requests
15
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
4b621da6
Commit
4b621da6
authored
6 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Patch: Fix SMB2 potential NULL dereference
parent
b7f5f57d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libvlc/patches/0002-smb2-Fix-potential-NULL-dereference.patch
+25
-0
25 additions, 0 deletions
...lc/patches/0002-smb2-Fix-potential-NULL-dereference.patch
with
25 additions
and
0 deletions
libvlc/patches/0002-smb2-Fix-potential-NULL-dereference.patch
0 → 100644
+
25
−
0
View file @
4b621da6
From 7daadc49d786987a0edcc75652cccf02e6f8ae76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Thu, 17 Jan 2019 10:01:34 +0100
Subject: [PATCH] smb2: Fix potential NULL dereference
---
modules/access/smb2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/smb2.c b/modules/access/smb2.c
index 280c544174..f3bb23a358 100644
--- a/modules/access/smb2.c
+++ b/modules/access/smb2.c
@@ -476,7 +476,7 @@
vlc_smb2_open_share(stream_t *access, const struct smb2_url *smb2_url,
password = "";
}
- smb2_set_password(sys->smb2, password);
+ smb2_set_password(sys->smb2, password ? password : "");
smb2_set_domain(sys->smb2, domain ? domain : "");
if (smb2_connect_share_async(sys->smb2, smb2_url->server, share,
--
2.20.1
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