403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/ftp/gftp/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/ftp/gftp/files/patch-lib-misc.c
Fix segmentation fault, when gftpui_run_chdir is called with directory=0x0,
and then calls gftp_expand_path (src=0x0), 
the NULL string was cloned using g_strdup, which returns NULL if 
its only argument is NULL, then this returned string was unreferenced.

 lib/misc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/misc.c b/lib/misc.c
index 16c019b..2791466 100644
--- lib/misc.c.orig
+++ lib/misc.c
@@ -143,6 +143,8 @@ gftp_expand_path (gftp_request * request, const char *src)
        tempchar;
   struct passwd *pw;
 
+  g_return_val_if_fail(src != NULL, NULL);
+
   pw = NULL;
   str = g_strdup (src);
 

Youez - 2016 - github.com/yon3zu
LinuXploit