summaryrefslogtreecommitdiff
path: root/Bugs.txt
blob: da0fe9b483fec93dbc020d28fab99eba809afd59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
When manually compiling FreeFileSync, you should also fix the following bugs in its dependent libraries.
FreeFileSync generally uses the latest library versions and works with upstream to get the bugs fixed
that affect FreeFileSync. Therefore it is not recommended to compile against older library versions than
the ones mentioned below. The remaining issues that are yet to be fixed are listed in the following:


------------------
| libcurl 7.66.0 |
------------------
__________________________________________________________________________________________________________
/lib/setopt.c
https://github.com/curl/curl/pull/4321

-            if ((arg < CURLFTPMETHOD_DEFAULT) || (arg > CURLFTPMETHOD_SINGLECWD))
+            if ((arg < CURLFTPMETHOD_DEFAULT) || (arg >= CURLFTPMETHOD_LAST))

__________________________________________________________________________________________________________
https://github.com/curl/curl/pull/4331

/include/curl/curl.h

    CURLFTPMETHOD_SINGLECWD, /* one CWD to full dir, then work on file */
+    CURLFTPMETHOD_FULLPATH, //AKA "CURLFTPMETHOD_NOCWD_BUT_THIS_TIME_FOR_REAL"


/lib/ftp.h

    FTPFILE_SINGLECWD = 3  /* make one CWD, then SIZE / RETR / STOR on the
                            file */
+	FTPFILE_FULLPATH = 4 //AKA "FTPFILE_NOCWD_BUT_THIS_TIME_FOR_REAL"


/lib/ftp.c

-    if ((data->set.ftp_filemethod == FTPFILE_NOCWD) &&
+    if ((data->set.ftp_filemethod == FTPFILE_NOCWD ||
+		 data->set.ftp_filemethod == FTPFILE_FULLPATH) &&


+	if (data->set.ftp_filemethod == FTPFILE_FULLPATH)
+	{
+		//no CWDs happened => remember old working dir
+		//ftpc->prevmethod = 
+		//ftpc->prevpath = 
+	}
+	else
+	{
    /* now store a copy of the directory we are in */
    free(ftpc->prevpath);

	[...]
	
        else
        {
            ftpc->prevpath = NULL; /* no path */
            free(path);
        }
    }

+			}


    switch (data->set.ftp_filemethod)
    {
        case FTPFILE_NOCWD:
+        case FTPFILE_FULLPATH:
		

+    if (data->set.ftp_filemethod == FTPFILE_FULLPATH)
+        ftpc->cwddone = TRUE;
+	else
		if (ftpc->prevpath)

__________________________________________________________________________________________________________
https://github.com/curl/curl/issues/1455

/lib/ftp.c:

Add:
	static bool is_routable_ip_v4(unsigned int ip[4])
	{
		if (ip[0] == 127 || //127.0.0.0/8 (localhost)
			ip[0] == 10  || //10.0.0.0/8 (private)
			(ip[0] == 192 && ip[1] == 168) ||  //192.168.0.0/16 (private)
			(ip[0] == 169 && ip[1] == 254) ||  //169.254.0.0/16 (link-local)
			(ip[0] == 172 && ip[1] / 16 == 1)) //172.16.0.0/12 (private)
			return false;
		return true;
	}


Remove: if (data->set.ftp_skip_ip)

Replace with:

	bool skipIp = data->set.ftp_skip_ip;
	if (!skipIp && !is_routable_ip_v4(ip))
	{
		unsigned int ip_ctrl[4];
		if (4 != sscanf(control_address(conn), "%u.%u.%u.%u",
						&ip_ctrl[0], &ip_ctrl[1], &ip_ctrl[2], &ip_ctrl[3]) ||
			is_routable_ip_v4(ip_ctrl))
			skipIp = true;
	}

	if (skipIp)

__________________________________________________________________________________________________________
/lib/ftp.c
https://github.com/curl/curl/pull/4332

-        else if (conn->bits.reuse && ftpc->entrypath)
+        else if (conn->bits.reuse && ftpc->entrypath &&
+			!(ftpc->dirdepth && ftpc->dirs[0][0] == '/')) //no need to go to entrypath when we have an absolute path

__________________________________________________________________________________________________________
/lib/ftp.c
https://github.com/curl/curl/issues/4342

- result = ftp_nb_type(conn, TRUE, FTP_LIST_TYPE);
+ result = ftp_nb_type(conn, data->set.prefer_ascii, FTP_LIST_TYPE);

__________________________________________________________________________________________________________
/lib/ftp.c
https://github.com/curl/curl/pull/4348


-	size_t n = strlen(inpath);
-	/* Check if path does not end with /, as then we cut off the file part */
-	if (inpath[n - 1] != '/')
-	{
-		/* chop off the file part if format is dir/dir/file */
-		slashPos = strrchr(inpath, '/');
-		n = slashPos - inpath;
-	}

+    /* chop off the file part if format is dir/file
+       otherwise remove the trailing slash for dir/dir/
+       and full paths like %2f/ except for /        */
+    size_t n = strrchr(inpath, '/') - inpath;
+    if(n == 0)
+      ++n;
__________________________________________________________________________________________________________

/lib/vtls/openssl.c
https://github.com/curl/curl/issues/4329

	case SSL_ERROR_ZERO_RETURN: /* no more data */
		/* close_notify alert */
+		if(num == FIRSTSOCKET)
			connclose(conn, "TLS close_notify");
__________________________________________________________________________________________________________


-----------------
| libssh2 1.9.0 |
-----------------
__________________________________________________________________________________________________________
move the following constants from src/sftp.h to include/libssh2_sftp.h:
	#define MAX_SFTP_OUTGOING_SIZE 30000
	#define MAX_SFTP_READ_SIZE 30000
__________________________________________________________________________________________________________

	
-------------------------------
| wxWidgets master 2019-07-22 |
-------------------------------
__________________________________________________________________________________________________________
Fix incorrect pane height calculations:

/src/aui/framemanager.cpp:

-        // determine the dock's minimum size
-        bool plus_border = false;
-        bool plus_caption = false;
-        int dock_min_size = 0;
-        for (j = 0; j < dock_pane_count; ++j)
-        {
-            wxAuiPaneInfo& pane = *dock.panes.Item(j);
-            if (pane.min_size != wxDefaultSize)
-            {
-                if (pane.HasBorder())
-                    plus_border = true;
-                if (pane.HasCaption())
-                    plus_caption = true;
-                if (dock.IsHorizontal())
-                {
-                    if (pane.min_size.y > dock_min_size)
-                        dock_min_size = pane.min_size.y;
-                }
-                else
-                {
-                    if (pane.min_size.x > dock_min_size)
-                        dock_min_size = pane.min_size.x;
-                }
-            }
-        }
-
-        if (plus_border)
-            dock_min_size += (pane_borderSize*2);
-        if (plus_caption && dock.IsHorizontal())
-            dock_min_size += (caption_size);
-
-        dock.min_size = dock_min_size;
 
 
+        // determine the dock's minimum size
+        int dock_min_size = 0;
+       for (j = 0; j < dock_pane_count; ++j)
+        {
+            wxAuiPaneInfo& pane = *dock.panes.Item(j);
+            if (pane.min_size != wxDefaultSize)
+            {
+				int paneSize = dock.IsHorizontal() ? pane.min_size.y : pane.min_size.x;
+                if (pane.HasBorder())
+					paneSize += 2 * pane_borderSize;
+                if (pane.HasCaption() && dock.IsHorizontal())
+					paneSize += caption_size;
+
+				if (paneSize > dock_min_size)
+					dock_min_size = paneSize;
+            }
+        }
+
+        dock.min_size = dock_min_size;
__________________________________________________________________________________________________________

/src/gtk/menu.cpp:

-g_signal_connect(m_menu, "map", G_CALLBACK(menu_map), this);
+g_signal_connect(m_menu, "show", G_CALLBACK(menu_map), this); //"map" is never called on Ubuntu Unity, but "show" is
__________________________________________________________________________________________________________

Backspace not working in filter dialog: http://www.freefilesync.org/forum/viewtopic.php?t=347

/src/gtk/window.cpp:

 void wxWindowGTK::ConnectWidget( GtkWidget *widget )
 {
-    static bool isSourceAttached;
-    if (!isSourceAttached)
-    {
-        // attach GSource to detect new GDK events
-        isSourceAttached = true;
-        static GSourceFuncs funcs = {
-            source_prepare, source_check, source_dispatch,
-            NULL, NULL, NULL
-        };
-        GSource* source = g_source_new(&funcs, sizeof(GSource));
-        // priority slightly higher than GDK_PRIORITY_EVENTS
-        g_source_set_priority(source, GDK_PRIORITY_EVENTS - 1);
-        g_source_attach(source, NULL);
-    }
+//
+//    if (!isSourceAttached)
+//    {
+//        // attach GSource to detect new GDK events
+//        isSourceAttached = true;
+//        static GSourceFuncs funcs = {
+//            source_prepare, source_check, source_dispatch,
+//            NULL, NULL, NULL
+//        };
+//        GSource* source = g_source_new(&funcs, sizeof(GSource));
+//        // priority slightly higher than GDK_PRIORITY_EVENTS
+//        g_source_set_priority(source, GDK_PRIORITY_EVENTS - 1);
+//        g_source_attach(source, NULL);
+//    }
__________________________________________________________________________________________________________

wxWidgets/GTK2 on some Linux systems incorrectly detects high DPI: https://freefilesync.org/forum/viewtopic.php?t=6114
=> hack away high-DPI support for GTK2 (= pretend GTK2 has device independent pixels, which it clearly has not!)

/include/wx/window.h:

    #include "wx/gtk/window.h"
-   #ifdef __WXGTK3__
+    //#ifdef __WXGTK3__
        #define wxHAVE_DPI_INDEPENDENT_PIXELS
-   #endif
+	//#endif
__________________________________________________________________________________________________________
bgstack15