[Android] Patch: Fix SMB2 potential NULL dereference

Geoffrey Métais git at videolan.org
Thu Jan 17 18:02:25 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 17 17:59:21 2019 +0100| [4b621da669500f07cad3f236c929076c6aa0f84c] | committer: Geoffrey Métais

Patch: Fix SMB2 potential NULL dereference

> https://code.videolan.org/videolan/vlc-android/commit/4b621da669500f07cad3f236c929076c6aa0f84c
---

 .../0002-smb2-Fix-potential-NULL-dereference.patch | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/libvlc/patches/0002-smb2-Fix-potential-NULL-dereference.patch b/libvlc/patches/0002-smb2-Fix-potential-NULL-dereference.patch
new file mode 100644
index 000000000..c9e657a63
--- /dev/null
+++ b/libvlc/patches/0002-smb2-Fix-potential-NULL-dereference.patch
@@ -0,0 +1,25 @@
+From 7daadc49d786987a0edcc75652cccf02e6f8ae76 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo at 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
+



More information about the Android mailing list