Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
rsync.6845
rsync-3.1.0-CVE-2017-17434_1_of_2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rsync-3.1.0-CVE-2017-17434_1_of_2.patch of Package rsync.6845
From 70aeb5fddd1b2f8e143276f8d5a085db16c593b9 Mon Sep 17 00:00:00 2001 From: Jeriko One <jeriko.one@gmx.us> Date: Thu, 16 Nov 2017 17:05:42 -0800 Subject: [PATCH] Sanitize xname in read_ndx_and_attrs. --- rsync.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: rsync-3.1.0/rsync.c =================================================================== --- rsync-3.1.0.orig/rsync.c +++ rsync-3.1.0/rsync.c @@ -49,6 +49,7 @@ extern int flist_eof; extern int file_old_total; extern int keep_dirlinks; extern int make_backups; +extern int sanitize_paths; extern struct file_list *cur_flist, *first_flist, *dir_flist; extern struct chmod_mode_struct *daemon_chmod_modes; #ifdef ICONV_OPTION @@ -396,6 +397,10 @@ int read_ndx_and_attrs(int f_in, int f_o if (iflags & ITEM_XNAME_FOLLOWS) { if ((len = read_vstring(f_in, buf, MAXPATHLEN)) < 0) exit_cleanup(RERR_PROTOCOL); + if (sanitize_paths) { + sanitize_path(buf, buf, "", 0, SP_DEFAULT); + len = strlen(buf); + } } else { *buf = '\0'; len = -1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor