diff options
Diffstat (limited to 'meta/recipes-support')
19 files changed, 799 insertions, 344 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2021-22945.patch b/meta/recipes-support/curl/curl/CVE-2021-22945.patch new file mode 100644 index 0000000000..44c42632ed --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2021-22945.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 43157490a5054bd24256fe12876931e8abc9df49 Mon Sep 17 00:00:00 2001 | ||
2 | From: z2_ on hackerone <> | ||
3 | Date: Tue, 24 Aug 2021 09:50:33 +0200 | ||
4 | Subject: [PATCH] mqtt: clear the leftovers pointer when sending succeeds | ||
5 | |||
6 | CVE-2021-22945 | ||
7 | |||
8 | Bug: https://curl.se/docs/CVE-2021-22945.html | ||
9 | |||
10 | Upstream-Status: Backport [https://github.com/curl/curl/commit/43157490a5054bd24256fe12876931e8abc9df49] | ||
11 | |||
12 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
13 | |||
14 | --- | ||
15 | lib/mqtt.c | 4 ++++ | ||
16 | 1 file changed, 4 insertions(+) | ||
17 | |||
18 | diff --git a/lib/mqtt.c b/lib/mqtt.c | ||
19 | index f077e6c3d..fcd40b41e 100644 | ||
20 | --- a/lib/mqtt.c | ||
21 | +++ b/lib/mqtt.c | ||
22 | @@ -128,6 +128,10 @@ static CURLcode mqtt_send(struct Curl_easy *data, | ||
23 | mq->sendleftovers = sendleftovers; | ||
24 | mq->nsend = nsend; | ||
25 | } | ||
26 | + else { | ||
27 | + mq->sendleftovers = NULL; | ||
28 | + mq->nsend = 0; | ||
29 | + } | ||
30 | return result; | ||
31 | } | ||
32 | |||
33 | -- | ||
34 | 2.34.1 | ||
35 | |||
diff --git a/meta/recipes-support/curl/curl/CVE-2021-22946.patch b/meta/recipes-support/curl/curl/CVE-2021-22946.patch new file mode 100644 index 0000000000..1cb95f0ea7 --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2021-22946.patch | |||
@@ -0,0 +1,333 @@ | |||
1 | From 7c6e072216001fb1280d1868adfdcb54e3372ce7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Patrick Monnerat <patrick@monnerat.net> | ||
3 | Date: Wed, 8 Sep 2021 11:56:22 +0200 | ||
4 | Subject: [PATCH] ftp,imap,pop3: do not ignore --ssl-reqd | ||
5 | |||
6 | In imap and pop3, check if TLS is required even when capabilities | ||
7 | request has failed. | ||
8 | |||
9 | In ftp, ignore preauthentication (230 status of server greeting) if TLS | ||
10 | is required. | ||
11 | |||
12 | Bug: https://curl.se/docs/CVE-2021-22946.html | ||
13 | |||
14 | CVE-2021-22946 | ||
15 | |||
16 | Upstream-Status: Backport [https://github.com/curl/curl/commit/364f174724ef115c63d5e5dc1d3342c8a43b1cca] | ||
17 | |||
18 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
19 | |||
20 | --- | ||
21 | lib/ftp.c | 9 ++++--- | ||
22 | lib/imap.c | 24 ++++++++---------- | ||
23 | lib/pop3.c | 33 +++++++++++------------- | ||
24 | tests/data/Makefile.inc | 2 ++ | ||
25 | tests/data/test984 | 56 +++++++++++++++++++++++++++++++++++++++++ | ||
26 | tests/data/test985 | 54 +++++++++++++++++++++++++++++++++++++++ | ||
27 | tests/data/test986 | 53 ++++++++++++++++++++++++++++++++++++++ | ||
28 | 7 files changed, 195 insertions(+), 36 deletions(-) | ||
29 | create mode 100644 tests/data/test984 | ||
30 | create mode 100644 tests/data/test985 | ||
31 | create mode 100644 tests/data/test986 | ||
32 | |||
33 | diff --git a/lib/ftp.c b/lib/ftp.c | ||
34 | index 3818a9e..8b3fe1d 100644 | ||
35 | --- a/lib/ftp.c | ||
36 | +++ b/lib/ftp.c | ||
37 | @@ -2665,9 +2665,12 @@ static CURLcode ftp_statemachine(struct Curl_easy *data, | ||
38 | /* we have now received a full FTP server response */ | ||
39 | switch(ftpc->state) { | ||
40 | case FTP_WAIT220: | ||
41 | - if(ftpcode == 230) | ||
42 | - /* 230 User logged in - already! */ | ||
43 | - return ftp_state_user_resp(data, ftpcode, ftpc->state); | ||
44 | + if(ftpcode == 230) { | ||
45 | + /* 230 User logged in - already! Take as 220 if TLS required. */ | ||
46 | + if(data->set.use_ssl <= CURLUSESSL_TRY || | ||
47 | + conn->bits.ftp_use_control_ssl) | ||
48 | + return ftp_state_user_resp(data, ftpcode, ftpc->state); | ||
49 | + } | ||
50 | else if(ftpcode != 220) { | ||
51 | failf(data, "Got a %03d ftp-server response when 220 was expected", | ||
52 | ftpcode); | ||
53 | diff --git a/lib/imap.c b/lib/imap.c | ||
54 | index 2d80699..b056208 100644 | ||
55 | --- a/lib/imap.c | ||
56 | +++ b/lib/imap.c | ||
57 | @@ -933,22 +933,18 @@ static CURLcode imap_state_capability_resp(struct Curl_easy *data, | ||
58 | line += wordlen; | ||
59 | } | ||
60 | } | ||
61 | - else if(imapcode == IMAP_RESP_OK) { | ||
62 | - if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { | ||
63 | - /* We don't have a SSL/TLS connection yet, but SSL is requested */ | ||
64 | - if(imapc->tls_supported) | ||
65 | - /* Switch to TLS connection now */ | ||
66 | - result = imap_perform_starttls(data, conn); | ||
67 | - else if(data->set.use_ssl == CURLUSESSL_TRY) | ||
68 | - /* Fallback and carry on with authentication */ | ||
69 | - result = imap_perform_authentication(data, conn); | ||
70 | - else { | ||
71 | - failf(data, "STARTTLS not supported."); | ||
72 | - result = CURLE_USE_SSL_FAILED; | ||
73 | - } | ||
74 | + else if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { | ||
75 | + /* PREAUTH is not compatible with STARTTLS. */ | ||
76 | + if(imapcode == IMAP_RESP_OK && imapc->tls_supported && !imapc->preauth) { | ||
77 | + /* Switch to TLS connection now */ | ||
78 | + result = imap_perform_starttls(data, conn); | ||
79 | } | ||
80 | - else | ||
81 | + else if(data->set.use_ssl <= CURLUSESSL_TRY) | ||
82 | result = imap_perform_authentication(data, conn); | ||
83 | + else { | ||
84 | + failf(data, "STARTTLS not available."); | ||
85 | + result = CURLE_USE_SSL_FAILED; | ||
86 | + } | ||
87 | } | ||
88 | else | ||
89 | result = imap_perform_authentication(data, conn); | ||
90 | diff --git a/lib/pop3.c b/lib/pop3.c | ||
91 | index 0ed3d3e..018fda1 100644 | ||
92 | --- a/lib/pop3.c | ||
93 | +++ b/lib/pop3.c | ||
94 | @@ -738,28 +738,23 @@ static CURLcode pop3_state_capa_resp(struct Curl_easy *data, int pop3code, | ||
95 | } | ||
96 | } | ||
97 | } | ||
98 | - else if(pop3code == '+') { | ||
99 | - if(data->set.use_ssl && !conn->ssl[FIRSTSOCKET].use) { | ||
100 | - /* We don't have a SSL/TLS connection yet, but SSL is requested */ | ||
101 | - if(pop3c->tls_supported) | ||
102 | - /* Switch to TLS connection now */ | ||
103 | - result = pop3_perform_starttls(data, conn); | ||
104 | - else if(data->set.use_ssl == CURLUSESSL_TRY) | ||
105 | - /* Fallback and carry on with authentication */ | ||
106 | - result = pop3_perform_authentication(data, conn); | ||
107 | - else { | ||
108 | - failf(data, "STLS not supported."); | ||
109 | - result = CURLE_USE_SSL_FAILED; | ||
110 | - } | ||
111 | - } | ||
112 | - else | ||
113 | - result = pop3_perform_authentication(data, conn); | ||
114 | - } | ||
115 | else { | ||
116 | /* Clear text is supported when CAPA isn't recognised */ | ||
117 | - pop3c->authtypes |= POP3_TYPE_CLEARTEXT; | ||
118 | + if(pop3code != '+') | ||
119 | + pop3c->authtypes |= POP3_TYPE_CLEARTEXT; | ||
120 | |||
121 | - result = pop3_perform_authentication(data, conn); | ||
122 | + if(!data->set.use_ssl || conn->ssl[FIRSTSOCKET].use) | ||
123 | + result = pop3_perform_authentication(data, conn); | ||
124 | + else if(pop3code == '+' && pop3c->tls_supported) | ||
125 | + /* Switch to TLS connection now */ | ||
126 | + result = pop3_perform_starttls(data, conn); | ||
127 | + else if(data->set.use_ssl <= CURLUSESSL_TRY) | ||
128 | + /* Fallback and carry on with authentication */ | ||
129 | + result = pop3_perform_authentication(data, conn); | ||
130 | + else { | ||
131 | + failf(data, "STLS not supported."); | ||
132 | + result = CURLE_USE_SSL_FAILED; | ||
133 | + } | ||
134 | } | ||
135 | |||
136 | return result; | ||
137 | diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc | ||
138 | index e08cfc7..e6e2551 100644 | ||
139 | --- a/tests/data/Makefile.inc | ||
140 | +++ b/tests/data/Makefile.inc | ||
141 | @@ -115,6 +115,8 @@ test945 test946 test947 test948 test949 test950 test951 test952 test953 \ | ||
142 | test954 test955 test956 test957 test958 test959 test960 test961 test962 \ | ||
143 | test963 test964 test965 test966 test967 test968 test969 test970 test971 \ | ||
144 | \ | ||
145 | +test984 test985 test986 \ | ||
146 | +\ | ||
147 | test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \ | ||
148 | test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \ | ||
149 | test1016 test1017 test1018 test1019 test1020 test1021 test1022 test1023 \ | ||
150 | diff --git a/tests/data/test984 b/tests/data/test984 | ||
151 | new file mode 100644 | ||
152 | index 0000000..e573f23 | ||
153 | --- /dev/null | ||
154 | +++ b/tests/data/test984 | ||
155 | @@ -0,0 +1,56 @@ | ||
156 | +<testcase> | ||
157 | +<info> | ||
158 | +<keywords> | ||
159 | +IMAP | ||
160 | +STARTTLS | ||
161 | +</keywords> | ||
162 | +</info> | ||
163 | + | ||
164 | +# | ||
165 | +# Server-side | ||
166 | +<reply> | ||
167 | +<servercmd> | ||
168 | +REPLY CAPABILITY A001 BAD Not implemented | ||
169 | +</servercmd> | ||
170 | +</reply> | ||
171 | + | ||
172 | +# | ||
173 | +# Client-side | ||
174 | +<client> | ||
175 | +<features> | ||
176 | +SSL | ||
177 | +</features> | ||
178 | +<server> | ||
179 | +imap | ||
180 | +</server> | ||
181 | + <name> | ||
182 | +IMAP require STARTTLS with failing capabilities | ||
183 | + </name> | ||
184 | + <command> | ||
185 | +imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -u user:secret --ssl-reqd | ||
186 | +</command> | ||
187 | +<file name="log/upload%TESTNUMBER"> | ||
188 | +Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) | ||
189 | +From: Fred Foobar <foobar@example.COM> | ||
190 | +Subject: afternoon meeting | ||
191 | +To: joe@example.com | ||
192 | +Message-Id: <B27397-0100000@example.COM> | ||
193 | +MIME-Version: 1.0 | ||
194 | +Content-Type: TEXT/PLAIN; CHARSET=US-ASCII | ||
195 | + | ||
196 | +Hello Joe, do you think we can meet at 3:30 tomorrow? | ||
197 | +</file> | ||
198 | +</client> | ||
199 | + | ||
200 | +# | ||
201 | +# Verify data after the test has been "shot" | ||
202 | +<verify> | ||
203 | +# 64 is CURLE_USE_SSL_FAILED | ||
204 | +<errorcode> | ||
205 | +64 | ||
206 | +</errorcode> | ||
207 | +<protocol> | ||
208 | +A001 CAPABILITY | ||
209 | +</protocol> | ||
210 | +</verify> | ||
211 | +</testcase> | ||
212 | diff --git a/tests/data/test985 b/tests/data/test985 | ||
213 | new file mode 100644 | ||
214 | index 0000000..d0db4aa | ||
215 | --- /dev/null | ||
216 | +++ b/tests/data/test985 | ||
217 | @@ -0,0 +1,54 @@ | ||
218 | +<testcase> | ||
219 | +<info> | ||
220 | +<keywords> | ||
221 | +POP3 | ||
222 | +STARTTLS | ||
223 | +</keywords> | ||
224 | +</info> | ||
225 | + | ||
226 | +# | ||
227 | +# Server-side | ||
228 | +<reply> | ||
229 | +<servercmd> | ||
230 | +REPLY CAPA -ERR Not implemented | ||
231 | +</servercmd> | ||
232 | +<data nocheck="yes"> | ||
233 | +From: me@somewhere | ||
234 | +To: fake@nowhere | ||
235 | + | ||
236 | +body | ||
237 | + | ||
238 | +-- | ||
239 | + yours sincerely | ||
240 | +</data> | ||
241 | +</reply> | ||
242 | + | ||
243 | +# | ||
244 | +# Client-side | ||
245 | +<client> | ||
246 | +<features> | ||
247 | +SSL | ||
248 | +</features> | ||
249 | +<server> | ||
250 | +pop3 | ||
251 | +</server> | ||
252 | + <name> | ||
253 | +POP3 require STARTTLS with failing capabilities | ||
254 | + </name> | ||
255 | + <command> | ||
256 | +pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --ssl-reqd | ||
257 | + </command> | ||
258 | +</client> | ||
259 | + | ||
260 | +# | ||
261 | +# Verify data after the test has been "shot" | ||
262 | +<verify> | ||
263 | +# 64 is CURLE_USE_SSL_FAILED | ||
264 | +<errorcode> | ||
265 | +64 | ||
266 | +</errorcode> | ||
267 | +<protocol> | ||
268 | +CAPA | ||
269 | +</protocol> | ||
270 | +</verify> | ||
271 | +</testcase> | ||
272 | diff --git a/tests/data/test986 b/tests/data/test986 | ||
273 | new file mode 100644 | ||
274 | index 0000000..a709437 | ||
275 | --- /dev/null | ||
276 | +++ b/tests/data/test986 | ||
277 | @@ -0,0 +1,53 @@ | ||
278 | +<testcase> | ||
279 | +<info> | ||
280 | +<keywords> | ||
281 | +FTP | ||
282 | +STARTTLS | ||
283 | +</keywords> | ||
284 | +</info> | ||
285 | + | ||
286 | +# | ||
287 | +# Server-side | ||
288 | +<reply> | ||
289 | +<servercmd> | ||
290 | +REPLY welcome 230 Welcome | ||
291 | +REPLY AUTH 500 unknown command | ||
292 | +</servercmd> | ||
293 | +</reply> | ||
294 | + | ||
295 | +# Client-side | ||
296 | +<client> | ||
297 | +<features> | ||
298 | +SSL | ||
299 | +</features> | ||
300 | +<server> | ||
301 | +ftp | ||
302 | +</server> | ||
303 | + <name> | ||
304 | +FTP require STARTTLS while preauthenticated | ||
305 | + </name> | ||
306 | +<file name="log/test%TESTNUMBER.txt"> | ||
307 | +data | ||
308 | + to | ||
309 | + see | ||
310 | +that FTPS | ||
311 | +works | ||
312 | + so does it? | ||
313 | +</file> | ||
314 | + <command> | ||
315 | +--ssl-reqd --ftp-ssl-control ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T log/test%TESTNUMBER.txt -u user:secret | ||
316 | +</command> | ||
317 | +</client> | ||
318 | + | ||
319 | +# Verify data after the test has been "shot" | ||
320 | +<verify> | ||
321 | +# 64 is CURLE_USE_SSL_FAILED | ||
322 | +<errorcode> | ||
323 | +64 | ||
324 | +</errorcode> | ||
325 | +<protocol> | ||
326 | +AUTH SSL | ||
327 | +AUTH TLS | ||
328 | +</protocol> | ||
329 | +</verify> | ||
330 | +</testcase> | ||
331 | -- | ||
332 | 2.34.1 | ||
333 | |||
diff --git a/meta/recipes-support/curl/curl/CVE-2021-22947.patch b/meta/recipes-support/curl/curl/CVE-2021-22947.patch new file mode 100644 index 0000000000..9bd9890d72 --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2021-22947.patch | |||
@@ -0,0 +1,357 @@ | |||
1 | From f3f2d2554d09ca0e13039e4915b83faaa55961c4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Patrick Monnerat <patrick@monnerat.net> | ||
3 | Date: Tue, 7 Sep 2021 13:26:42 +0200 | ||
4 | Subject: [PATCH] ftp,imap,pop3,smtp: reject STARTTLS server response | ||
5 | |||
6 | pipelining | ||
7 | |||
8 | If a server pipelines future responses within the STARTTLS response, the | ||
9 | former are preserved in the pingpong cache across TLS negotiation and | ||
10 | used as responses to the encrypted commands. | ||
11 | |||
12 | This fix detects pipelined STARTTLS responses and rejects them with an | ||
13 | error. | ||
14 | |||
15 | CVE-2021-22947 | ||
16 | |||
17 | Bug: https://curl.se/docs/CVE-2021-22947.html | ||
18 | |||
19 | Upstream-Status: Backport [https://github.com/curl/curl/commit/8ef147c43646e91fdaad5d0e7b60351f842e5c68] | ||
20 | |||
21 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
22 | |||
23 | --- | ||
24 | lib/ftp.c | 3 +++ | ||
25 | lib/imap.c | 4 +++ | ||
26 | lib/pop3.c | 4 +++ | ||
27 | lib/smtp.c | 4 +++ | ||
28 | tests/data/Makefile.inc | 2 +- | ||
29 | tests/data/test980 | 52 ++++++++++++++++++++++++++++++++++++ | ||
30 | tests/data/test981 | 59 +++++++++++++++++++++++++++++++++++++++++ | ||
31 | tests/data/test982 | 57 +++++++++++++++++++++++++++++++++++++++ | ||
32 | tests/data/test983 | 52 ++++++++++++++++++++++++++++++++++++ | ||
33 | 9 files changed, 236 insertions(+), 1 deletion(-) | ||
34 | create mode 100644 tests/data/test980 | ||
35 | create mode 100644 tests/data/test981 | ||
36 | create mode 100644 tests/data/test982 | ||
37 | create mode 100644 tests/data/test983 | ||
38 | |||
39 | diff --git a/lib/ftp.c b/lib/ftp.c | ||
40 | index 8b3fe1d..a55566a 100644 | ||
41 | --- a/lib/ftp.c | ||
42 | +++ b/lib/ftp.c | ||
43 | @@ -2727,6 +2727,9 @@ static CURLcode ftp_statemachine(struct Curl_easy *data, | ||
44 | case FTP_AUTH: | ||
45 | /* we have gotten the response to a previous AUTH command */ | ||
46 | |||
47 | + if(pp->cache_size) | ||
48 | + return CURLE_WEIRD_SERVER_REPLY; /* Forbid pipelining in response. */ | ||
49 | + | ||
50 | /* RFC2228 (page 5) says: | ||
51 | * | ||
52 | * If the server is willing to accept the named security mechanism, | ||
53 | diff --git a/lib/imap.c b/lib/imap.c | ||
54 | index b056208..9230f17 100644 | ||
55 | --- a/lib/imap.c | ||
56 | +++ b/lib/imap.c | ||
57 | @@ -962,6 +962,10 @@ static CURLcode imap_state_starttls_resp(struct Curl_easy *data, | ||
58 | |||
59 | (void)instate; /* no use for this yet */ | ||
60 | |||
61 | + /* Pipelining in response is forbidden. */ | ||
62 | + if(data->conn->proto.imapc.pp.cache_size) | ||
63 | + return CURLE_WEIRD_SERVER_REPLY; | ||
64 | + | ||
65 | if(imapcode != IMAP_RESP_OK) { | ||
66 | if(data->set.use_ssl != CURLUSESSL_TRY) { | ||
67 | failf(data, "STARTTLS denied"); | ||
68 | diff --git a/lib/pop3.c b/lib/pop3.c | ||
69 | index 018fda1..4f953f7 100644 | ||
70 | --- a/lib/pop3.c | ||
71 | +++ b/lib/pop3.c | ||
72 | @@ -769,6 +769,10 @@ static CURLcode pop3_state_starttls_resp(struct Curl_easy *data, | ||
73 | CURLcode result = CURLE_OK; | ||
74 | (void)instate; /* no use for this yet */ | ||
75 | |||
76 | + /* Pipelining in response is forbidden. */ | ||
77 | + if(data->conn->proto.pop3c.pp.cache_size) | ||
78 | + return CURLE_WEIRD_SERVER_REPLY; | ||
79 | + | ||
80 | if(pop3code != '+') { | ||
81 | if(data->set.use_ssl != CURLUSESSL_TRY) { | ||
82 | failf(data, "STARTTLS denied"); | ||
83 | diff --git a/lib/smtp.c b/lib/smtp.c | ||
84 | index 1fc8800..51445f6 100644 | ||
85 | --- a/lib/smtp.c | ||
86 | +++ b/lib/smtp.c | ||
87 | @@ -832,6 +832,10 @@ static CURLcode smtp_state_starttls_resp(struct Curl_easy *data, | ||
88 | CURLcode result = CURLE_OK; | ||
89 | (void)instate; /* no use for this yet */ | ||
90 | |||
91 | + /* Pipelining in response is forbidden. */ | ||
92 | + if(data->conn->proto.smtpc.pp.cache_size) | ||
93 | + return CURLE_WEIRD_SERVER_REPLY; | ||
94 | + | ||
95 | if(smtpcode != 220) { | ||
96 | if(data->set.use_ssl != CURLUSESSL_TRY) { | ||
97 | failf(data, "STARTTLS denied, code %d", smtpcode); | ||
98 | diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc | ||
99 | index e6e2551..22d7a0b 100644 | ||
100 | --- a/tests/data/Makefile.inc | ||
101 | +++ b/tests/data/Makefile.inc | ||
102 | @@ -115,7 +115,7 @@ test945 test946 test947 test948 test949 test950 test951 test952 test953 \ | ||
103 | test954 test955 test956 test957 test958 test959 test960 test961 test962 \ | ||
104 | test963 test964 test965 test966 test967 test968 test969 test970 test971 \ | ||
105 | \ | ||
106 | -test984 test985 test986 \ | ||
107 | +test980 test981 test982 test983 test984 test985 test986 \ | ||
108 | \ | ||
109 | test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \ | ||
110 | test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \ | ||
111 | diff --git a/tests/data/test980 b/tests/data/test980 | ||
112 | new file mode 100644 | ||
113 | index 0000000..97567f8 | ||
114 | --- /dev/null | ||
115 | +++ b/tests/data/test980 | ||
116 | @@ -0,0 +1,52 @@ | ||
117 | +<testcase> | ||
118 | +<info> | ||
119 | +<keywords> | ||
120 | +SMTP | ||
121 | +STARTTLS | ||
122 | +</keywords> | ||
123 | +</info> | ||
124 | + | ||
125 | +# | ||
126 | +# Server-side | ||
127 | +<reply> | ||
128 | +<servercmd> | ||
129 | +CAPA STARTTLS | ||
130 | +AUTH PLAIN | ||
131 | +REPLY STARTTLS 454 currently unavailable\r\n235 Authenticated\r\n250 2.1.0 Sender ok\r\n250 2.1.5 Recipient ok\r\n354 Enter mail\r\n250 2.0.0 Accepted | ||
132 | +REPLY AUTH 535 5.7.8 Authentication credentials invalid | ||
133 | +</servercmd> | ||
134 | +</reply> | ||
135 | + | ||
136 | +# | ||
137 | +# Client-side | ||
138 | +<client> | ||
139 | +<features> | ||
140 | +SSL | ||
141 | +</features> | ||
142 | +<server> | ||
143 | +smtp | ||
144 | +</server> | ||
145 | + <name> | ||
146 | +SMTP STARTTLS pipelined server response | ||
147 | + </name> | ||
148 | +<stdin> | ||
149 | +mail body | ||
150 | +</stdin> | ||
151 | + <command> | ||
152 | +smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret --ssl --sasl-ir -T - | ||
153 | +</command> | ||
154 | +</client> | ||
155 | + | ||
156 | +# | ||
157 | +# Verify data after the test has been "shot" | ||
158 | +<verify> | ||
159 | +# 8 is CURLE_WEIRD_SERVER_REPLY | ||
160 | +<errorcode> | ||
161 | +8 | ||
162 | +</errorcode> | ||
163 | +<protocol> | ||
164 | +EHLO %TESTNUMBER | ||
165 | +STARTTLS | ||
166 | +</protocol> | ||
167 | +</verify> | ||
168 | +</testcase> | ||
169 | diff --git a/tests/data/test981 b/tests/data/test981 | ||
170 | new file mode 100644 | ||
171 | index 0000000..2b98ce4 | ||
172 | --- /dev/null | ||
173 | +++ b/tests/data/test981 | ||
174 | @@ -0,0 +1,59 @@ | ||
175 | +<testcase> | ||
176 | +<info> | ||
177 | +<keywords> | ||
178 | +IMAP | ||
179 | +STARTTLS | ||
180 | +</keywords> | ||
181 | +</info> | ||
182 | + | ||
183 | +# | ||
184 | +# Server-side | ||
185 | +<reply> | ||
186 | +<servercmd> | ||
187 | +CAPA STARTTLS | ||
188 | +REPLY STARTTLS A002 BAD currently unavailable\r\nA003 OK Authenticated\r\nA004 OK Accepted | ||
189 | +REPLY LOGIN A003 BAD Authentication credentials invalid | ||
190 | +</servercmd> | ||
191 | +</reply> | ||
192 | + | ||
193 | +# | ||
194 | +# Client-side | ||
195 | +<client> | ||
196 | +<features> | ||
197 | +SSL | ||
198 | +</features> | ||
199 | +<server> | ||
200 | +imap | ||
201 | +</server> | ||
202 | + <name> | ||
203 | +IMAP STARTTLS pipelined server response | ||
204 | + </name> | ||
205 | + <command> | ||
206 | +imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -u user:secret --ssl | ||
207 | +</command> | ||
208 | +<file name="log/upload%TESTNUMBER"> | ||
209 | +Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) | ||
210 | +From: Fred Foobar <foobar@example.COM> | ||
211 | +Subject: afternoon meeting | ||
212 | +To: joe@example.com | ||
213 | +Message-Id: <B27397-0100000@example.COM> | ||
214 | +MIME-Version: 1.0 | ||
215 | +Content-Type: TEXT/PLAIN; CHARSET=US-ASCII | ||
216 | + | ||
217 | +Hello Joe, do you think we can meet at 3:30 tomorrow? | ||
218 | +</file> | ||
219 | +</client> | ||
220 | + | ||
221 | +# | ||
222 | +# Verify data after the test has been "shot" | ||
223 | +<verify> | ||
224 | +# 8 is CURLE_WEIRD_SERVER_REPLY | ||
225 | +<errorcode> | ||
226 | +8 | ||
227 | +</errorcode> | ||
228 | +<protocol> | ||
229 | +A001 CAPABILITY | ||
230 | +A002 STARTTLS | ||
231 | +</protocol> | ||
232 | +</verify> | ||
233 | +</testcase> | ||
234 | diff --git a/tests/data/test982 b/tests/data/test982 | ||
235 | new file mode 100644 | ||
236 | index 0000000..9e07cc0 | ||
237 | --- /dev/null | ||
238 | +++ b/tests/data/test982 | ||
239 | @@ -0,0 +1,57 @@ | ||
240 | +<testcase> | ||
241 | +<info> | ||
242 | +<keywords> | ||
243 | +POP3 | ||
244 | +STARTTLS | ||
245 | +</keywords> | ||
246 | +</info> | ||
247 | + | ||
248 | +# | ||
249 | +# Server-side | ||
250 | +<reply> | ||
251 | +<servercmd> | ||
252 | +CAPA STLS USER | ||
253 | +REPLY STLS -ERR currently unavailable\r\n+OK user accepted\r\n+OK authenticated | ||
254 | +REPLY PASS -ERR Authentication credentials invalid | ||
255 | +</servercmd> | ||
256 | +<data nocheck="yes"> | ||
257 | +From: me@somewhere | ||
258 | +To: fake@nowhere | ||
259 | + | ||
260 | +body | ||
261 | + | ||
262 | +-- | ||
263 | + yours sincerely | ||
264 | +</data> | ||
265 | +</reply> | ||
266 | + | ||
267 | +# | ||
268 | +# Client-side | ||
269 | +<client> | ||
270 | +<features> | ||
271 | +SSL | ||
272 | +</features> | ||
273 | +<server> | ||
274 | +pop3 | ||
275 | +</server> | ||
276 | + <name> | ||
277 | +POP3 STARTTLS pipelined server response | ||
278 | + </name> | ||
279 | + <command> | ||
280 | +pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret --ssl | ||
281 | + </command> | ||
282 | +</client> | ||
283 | + | ||
284 | +# | ||
285 | +# Verify data after the test has been "shot" | ||
286 | +<verify> | ||
287 | +# 8 is CURLE_WEIRD_SERVER_REPLY | ||
288 | +<errorcode> | ||
289 | +8 | ||
290 | +</errorcode> | ||
291 | +<protocol> | ||
292 | +CAPA | ||
293 | +STLS | ||
294 | +</protocol> | ||
295 | +</verify> | ||
296 | +</testcase> | ||
297 | diff --git a/tests/data/test983 b/tests/data/test983 | ||
298 | new file mode 100644 | ||
299 | index 0000000..300ec45 | ||
300 | --- /dev/null | ||
301 | +++ b/tests/data/test983 | ||
302 | @@ -0,0 +1,52 @@ | ||
303 | +<testcase> | ||
304 | +<info> | ||
305 | +<keywords> | ||
306 | +FTP | ||
307 | +STARTTLS | ||
308 | +</keywords> | ||
309 | +</info> | ||
310 | + | ||
311 | +# | ||
312 | +# Server-side | ||
313 | +<reply> | ||
314 | +<servercmd> | ||
315 | +REPLY AUTH 500 unknown command\r\n500 unknown command\r\n331 give password\r\n230 Authenticated\r\n257 "/"\r\n200 OK\r\n200 OK\r\n200 OK\r\n226 Transfer complete | ||
316 | +REPLY PASS 530 Login incorrect | ||
317 | +</servercmd> | ||
318 | +</reply> | ||
319 | + | ||
320 | +# Client-side | ||
321 | +<client> | ||
322 | +<features> | ||
323 | +SSL | ||
324 | +</features> | ||
325 | +<server> | ||
326 | +ftp | ||
327 | +</server> | ||
328 | + <name> | ||
329 | +FTP STARTTLS pipelined server response | ||
330 | + </name> | ||
331 | +<file name="log/test%TESTNUMBER.txt"> | ||
332 | +data | ||
333 | + to | ||
334 | + see | ||
335 | +that FTPS | ||
336 | +works | ||
337 | + so does it? | ||
338 | +</file> | ||
339 | + <command> | ||
340 | +--ssl --ftp-ssl-control ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T log/test%TESTNUMBER.txt -u user:secret -P %CLIENTIP | ||
341 | +</command> | ||
342 | +</client> | ||
343 | + | ||
344 | +# Verify data after the test has been "shot" | ||
345 | +<verify> | ||
346 | +# 8 is CURLE_WEIRD_SERVER_REPLY | ||
347 | +<errorcode> | ||
348 | +8 | ||
349 | +</errorcode> | ||
350 | +<protocol> | ||
351 | +AUTH SSL | ||
352 | +</protocol> | ||
353 | +</verify> | ||
354 | +</testcase> | ||
355 | -- | ||
356 | 2.34.1 | ||
357 | |||
diff --git a/meta/recipes-support/curl/curl_7.75.0.bb b/meta/recipes-support/curl/curl_7.75.0.bb index d64e5e1f79..accede604c 100644 --- a/meta/recipes-support/curl/curl_7.75.0.bb +++ b/meta/recipes-support/curl/curl_7.75.0.bb | |||
@@ -21,6 +21,9 @@ SRC_URI = "https://curl.haxx.se/download/curl-${PV}.tar.bz2 \ | |||
21 | file://CVE-2021-22901.patch \ | 21 | file://CVE-2021-22901.patch \ |
22 | file://CVE-2021-22924.patch \ | 22 | file://CVE-2021-22924.patch \ |
23 | file://CVE-2021-22926.patch \ | 23 | file://CVE-2021-22926.patch \ |
24 | file://CVE-2021-22945.patch \ | ||
25 | file://CVE-2021-22946.patch \ | ||
26 | file://CVE-2021-22947.patch \ | ||
24 | " | 27 | " |
25 | 28 | ||
26 | SRC_URI[sha256sum] = "50552d4501c178e4cc68baaecc487f466a3d6d19bbf4e50a01869effb316d026" | 29 | SRC_URI[sha256sum] = "50552d4501c178e4cc68baaecc487f466a3d6d19bbf4e50a01869effb316d026" |
@@ -28,6 +31,10 @@ SRC_URI[sha256sum] = "50552d4501c178e4cc68baaecc487f466a3d6d19bbf4e50a01869effb3 | |||
28 | # Curl has used many names over the years... | 31 | # Curl has used many names over the years... |
29 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" | 32 | CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl" |
30 | 33 | ||
34 | # These only apply when using --with-libmetalink, but --without-libmetalink is | ||
35 | # set below. | ||
36 | CVE_CHECK_WHITELIST += "CVE-2021-22922 CVE-2021-22923" | ||
37 | |||
31 | inherit autotools pkgconfig binconfig multilib_header | 38 | inherit autotools pkgconfig binconfig multilib_header |
32 | 39 | ||
33 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls libidn proxy threaded-resolver verbose zlib" | 40 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls libidn proxy threaded-resolver verbose zlib" |
@@ -65,6 +72,7 @@ PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threade | |||
65 | PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose" | 72 | PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose" |
66 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" | 73 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" |
67 | 74 | ||
75 | # Keep --without-libmetalink to mitigate CVE-2021-22922 and CVE-2021-22923 | ||
68 | EXTRA_OECONF = " \ | 76 | EXTRA_OECONF = " \ |
69 | --disable-libcurl-option \ | 77 | --disable-libcurl-option \ |
70 | --disable-ntlm-wb \ | 78 | --disable-ntlm-wb \ |
diff --git a/meta/recipes-support/gmp/gmp/cve-2021-43618.patch b/meta/recipes-support/gmp/gmp/cve-2021-43618.patch new file mode 100644 index 0000000000..095fb21eaa --- /dev/null +++ b/meta/recipes-support/gmp/gmp/cve-2021-43618.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | CVE: CVE-2021-43618 | ||
2 | Upstream-Status: Backport | ||
3 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
4 | |||
5 | # HG changeset patch | ||
6 | # User Marco Bodrato <bodrato@mail.dm.unipi.it> | ||
7 | # Date 1634836009 -7200 | ||
8 | # Node ID 561a9c25298e17bb01896801ff353546c6923dbd | ||
9 | # Parent e1fd9db13b475209a864577237ea4b9105b3e96e | ||
10 | mpz/inp_raw.c: Avoid bit size overflows | ||
11 | |||
12 | diff -r e1fd9db13b47 -r 561a9c25298e mpz/inp_raw.c | ||
13 | --- a/mpz/inp_raw.c Tue Dec 22 23:49:51 2020 +0100 | ||
14 | +++ b/mpz/inp_raw.c Thu Oct 21 19:06:49 2021 +0200 | ||
15 | @@ -88,8 +88,11 @@ | ||
16 | |||
17 | abs_csize = ABS (csize); | ||
18 | |||
19 | + if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8)) | ||
20 | + return 0; /* Bit size overflows */ | ||
21 | + | ||
22 | /* round up to a multiple of limbs */ | ||
23 | - abs_xsize = BITS_TO_LIMBS (abs_csize*8); | ||
24 | + abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8); | ||
25 | |||
26 | if (abs_xsize != 0) | ||
27 | { | ||
diff --git a/meta/recipes-support/gmp/gmp_6.2.1.bb b/meta/recipes-support/gmp/gmp_6.2.1.bb index 3c50f928ab..f97c588c31 100644 --- a/meta/recipes-support/gmp/gmp_6.2.1.bb +++ b/meta/recipes-support/gmp/gmp_6.2.1.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \ | |||
12 | file://use-includedir.patch \ | 12 | file://use-includedir.patch \ |
13 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ | 13 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ |
14 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ | 14 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ |
15 | file://cve-2021-43618.patch \ | ||
15 | " | 16 | " |
16 | SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea" | 17 | SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea" |
17 | SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c" | 18 | SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c" |
diff --git a/meta/recipes-support/libgcrypt/libgcrypt_1.9.3.bb b/meta/recipes-support/libgcrypt/libgcrypt_1.9.4.bb index fd3d8e09f2..c212d02651 100644 --- a/meta/recipes-support/libgcrypt/libgcrypt_1.9.3.bb +++ b/meta/recipes-support/libgcrypt/libgcrypt_1.9.4.bb | |||
@@ -27,7 +27,7 @@ SRC_URI = "${GNUPG_MIRROR}/libgcrypt/libgcrypt-${PV}.tar.bz2 \ | |||
27 | file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ | 27 | file://0004-tests-Makefile.am-fix-undefined-reference-to-pthread.patch \ |
28 | file://0001-Makefile.am-add-a-missing-space.patch \ | 28 | file://0001-Makefile.am-add-a-missing-space.patch \ |
29 | " | 29 | " |
30 | SRC_URI[sha256sum] = "97ebe4f94e2f7e35b752194ce15a0f3c66324e0ff6af26659bbfb5ff2ec328fd" | 30 | SRC_URI[sha256sum] = "ea849c83a72454e3ed4267697e8ca03390aee972ab421e7df69dfe42b65caaf7" |
31 | 31 | ||
32 | # Below whitelisted CVEs are disputed and not affecting crypto libraries for any distro. | 32 | # Below whitelisted CVEs are disputed and not affecting crypto libraries for any distro. |
33 | CVE_CHECK_WHITELIST += "CVE-2018-12433 CVE-2018-12438" | 33 | CVE_CHECK_WHITELIST += "CVE-2018-12433 CVE-2018-12438" |
diff --git a/meta/recipes-support/libpcre/libpcre2_10.36.bb b/meta/recipes-support/libpcre/libpcre2_10.36.bb index d8077a1224..d64822be30 100644 --- a/meta/recipes-support/libpcre/libpcre2_10.36.bb +++ b/meta/recipes-support/libpcre/libpcre2_10.36.bb | |||
@@ -10,7 +10,9 @@ SECTION = "devel" | |||
10 | LICENSE = "BSD-3-Clause" | 10 | LICENSE = "BSD-3-Clause" |
11 | LIC_FILES_CHKSUM = "file://LICENCE;md5=60c08fab1357bfe9084b333bc33362d6" | 11 | LIC_FILES_CHKSUM = "file://LICENCE;md5=60c08fab1357bfe9084b333bc33362d6" |
12 | 12 | ||
13 | SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre2-${PV}.tar.bz2" | 13 | SRC_URI = "https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${PV}/pcre2-${PV}.tar.bz2" |
14 | |||
15 | UPSTREAM_CHECK_URI = "https://github.com/PhilipHazel/pcre2/releases" | ||
14 | 16 | ||
15 | SRC_URI[sha256sum] = "a9ef39278113542968c7c73a31cfcb81aca1faa64690f400b907e8ab6b4a665c" | 17 | SRC_URI[sha256sum] = "a9ef39278113542968c7c73a31cfcb81aca1faa64690f400b907e8ab6b4a665c" |
16 | 18 | ||
diff --git a/meta/recipes-support/libpcre/libpcre_8.44.bb b/meta/recipes-support/libpcre/libpcre_8.44.bb index cd80dc7345..3267c5ad72 100644 --- a/meta/recipes-support/libpcre/libpcre_8.44.bb +++ b/meta/recipes-support/libpcre/libpcre_8.44.bb | |||
@@ -7,7 +7,7 @@ HOMEPAGE = "http://www.pcre.org" | |||
7 | SECTION = "devel" | 7 | SECTION = "devel" |
8 | LICENSE = "BSD-3-Clause" | 8 | LICENSE = "BSD-3-Clause" |
9 | LIC_FILES_CHKSUM = "file://LICENCE;md5=3bb381a66a5385b246d4877922e7511e" | 9 | LIC_FILES_CHKSUM = "file://LICENCE;md5=3bb381a66a5385b246d4877922e7511e" |
10 | SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre-${PV}.tar.bz2 \ | 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/pcre/pcre-${PV}.tar.bz2 \ |
11 | file://run-ptest \ | 11 | file://run-ptest \ |
12 | file://Makefile \ | 12 | file://Makefile \ |
13 | " | 13 | " |
diff --git a/meta/recipes-support/libusb/libusb1_1.0.24.bb b/meta/recipes-support/libusb/libusb1_1.0.24.bb index 92e66b1b16..76a707b70f 100644 --- a/meta/recipes-support/libusb/libusb1_1.0.24.bb +++ b/meta/recipes-support/libusb/libusb1_1.0.24.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "Userspace library to access USB (version 1.0)" | 1 | SUMMARY = "Userspace library to access USB (version 1.0)" |
2 | DESCRIPTION = "A cross-platform library to access USB devices from Linux, \ | 2 | DESCRIPTION = "A cross-platform library to access USB devices from Linux, \ |
3 | macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace." | 3 | macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace." |
4 | HOMEPAGE = "http://libusb.sf.net" | 4 | HOMEPAGE = "https://libusb.info" |
5 | BUGTRACKER = "http://www.libusb.org/report" | 5 | BUGTRACKER = "http://www.libusb.org/report" |
6 | SECTION = "libs" | 6 | SECTION = "libs" |
7 | 7 | ||
@@ -10,10 +10,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | |||
10 | 10 | ||
11 | BBCLASSEXTEND = "native nativesdk" | 11 | BBCLASSEXTEND = "native nativesdk" |
12 | 12 | ||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.bz2 \ | 13 | SRC_URI = "https://github.com/libusb/libusb/releases/download/v${PV}/libusb-${PV}.tar.bz2 \ |
14 | file://run-ptest \ | 14 | file://run-ptest \ |
15 | " | 15 | " |
16 | 16 | ||
17 | UPSTREAM_CHECK_URI = "https://github.com/libusb/libusb/releases" | ||
18 | |||
17 | SRC_URI[sha256sum] = "7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a" | 19 | SRC_URI[sha256sum] = "7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a" |
18 | 20 | ||
19 | S = "${WORKDIR}/libusb-${PV}" | 21 | S = "${WORKDIR}/libusb-${PV}" |
diff --git a/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch b/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch index 63a7b78f12..2fc11dbdc2 100644 --- a/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch +++ b/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch | |||
@@ -16,11 +16,11 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
16 | src/Makefile | 14 ++++---------- | 16 | src/Makefile | 14 ++++---------- |
17 | 1 file changed, 4 insertions(+), 10 deletions(-) | 17 | 1 file changed, 4 insertions(+), 10 deletions(-) |
18 | 18 | ||
19 | diff --git a/src/Makefile b/src/Makefile | 19 | Index: git/src/Makefile |
20 | index f2fafa4dc..7148d4bd9 100644 | 20 | =================================================================== |
21 | --- a/src/Makefile | 21 | --- git.orig/src/Makefile |
22 | +++ b/src/Makefile | 22 | +++ git/src/Makefile |
23 | @@ -2845,16 +2845,10 @@ auto/pathdef.c: Makefile auto/config.mk | 23 | @@ -3101,16 +3101,10 @@ auto/pathdef.c: Makefile auto/config.mk |
24 | -@echo '#include "vim.h"' >> $@ | 24 | -@echo '#include "vim.h"' >> $@ |
25 | -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@ | 25 | -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@ |
26 | -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@ | 26 | -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@ |
@@ -41,6 +41,3 @@ index f2fafa4dc..7148d4bd9 100644 | |||
41 | -@sh $(srcdir)/pathdef.sh | 41 | -@sh $(srcdir)/pathdef.sh |
42 | 42 | ||
43 | GUI_GTK_RES_INPUTS = \ | 43 | GUI_GTK_RES_INPUTS = \ |
44 | -- | ||
45 | 2.17.1 | ||
46 | |||
diff --git a/meta/recipes-support/vim/files/CVE-2021-3778.patch b/meta/recipes-support/vim/files/CVE-2021-3778.patch deleted file mode 100644 index 04ac413e56..0000000000 --- a/meta/recipes-support/vim/files/CVE-2021-3778.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 9ba62f1042513fcadcc4e8fdcee171db66ef1d69 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bram Moolenaar <Bram@vim.org> | ||
3 | Date: Fri, 24 Sep 2021 15:15:24 +0800 | ||
4 | Subject: [PATCH] patch 8.2.3409: reading beyond end of line with invalid utf-8 | ||
5 | character | ||
6 | |||
7 | Problem: Reading beyond end of line with invalid utf-8 character. | ||
8 | Solution: Check for NUL when advancing. | ||
9 | |||
10 | Upstream-Status: Backport [https://github.com/vim/vim/commit/65b605665997fad54ef39a93199e305af2fe4d7f] | ||
11 | CVE: CVE-2021-3778 | ||
12 | |||
13 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
14 | --- | ||
15 | src/regexp_nfa.c | 3 ++- | ||
16 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c | ||
19 | index fb512f961..2806408de 100644 | ||
20 | --- a/src/regexp_nfa.c | ||
21 | +++ b/src/regexp_nfa.c | ||
22 | @@ -5455,7 +5455,8 @@ find_match_text(colnr_T startcol, int regstart, char_u *match_text) | ||
23 | match = FALSE; | ||
24 | break; | ||
25 | } | ||
26 | - len2 += MB_CHAR2LEN(c2); | ||
27 | + len2 += enc_utf8 ? utf_ptr2len(rex.line + col + len2) | ||
28 | + : MB_CHAR2LEN(c2); | ||
29 | } | ||
30 | if (match | ||
31 | // check that no composing char follows | ||
32 | -- | ||
33 | 2.17.1 | ||
34 | |||
diff --git a/meta/recipes-support/vim/files/CVE-2021-3872.patch b/meta/recipes-support/vim/files/CVE-2021-3872.patch deleted file mode 100644 index f0f30933fa..0000000000 --- a/meta/recipes-support/vim/files/CVE-2021-3872.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From 132d060ffbb9651f0d79bd0b6d80cab460235a99 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bram Moolenaar <Bram@vim.org> | ||
3 | Date: Fri, 12 Nov 2021 02:56:51 +0000 | ||
4 | Subject: [PATCH] patch 8.2.3487: illegal memory access if buffer name is very | ||
5 | long | ||
6 | |||
7 | Problem: Illegal memory access if buffer name is very long. | ||
8 | Solution: Make sure not to go over the end of the buffer. | ||
9 | |||
10 | CVE: CVE-2021-3872 | ||
11 | |||
12 | Upstream-Status: Backport [https://github.com/vim/vim/commit/826bfe4bbd7594188e3d74d2539d9707b1c6a14b] | ||
13 | |||
14 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
15 | --- | ||
16 | src/drawscreen.c | 10 +++++----- | ||
17 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
18 | |||
19 | diff --git a/src/drawscreen.c b/src/drawscreen.c | ||
20 | index 3a88ee979..9acb70552 100644 | ||
21 | --- a/src/drawscreen.c | ||
22 | +++ b/src/drawscreen.c | ||
23 | @@ -446,13 +446,13 @@ win_redr_status(win_T *wp, int ignore_pum UNUSED) | ||
24 | *(p + len++) = ' '; | ||
25 | if (bt_help(wp->w_buffer)) | ||
26 | { | ||
27 | - STRCPY(p + len, _("[Help]")); | ||
28 | + vim_snprintf((char *)p + len, MAXPATHL - len, "%s", _("[Help]")); | ||
29 | len += (int)STRLEN(p + len); | ||
30 | } | ||
31 | #ifdef FEAT_QUICKFIX | ||
32 | if (wp->w_p_pvw) | ||
33 | { | ||
34 | - STRCPY(p + len, _("[Preview]")); | ||
35 | + vim_snprintf((char *)p + len, MAXPATHL - len, "%s", _("[Preview]")); | ||
36 | len += (int)STRLEN(p + len); | ||
37 | } | ||
38 | #endif | ||
39 | @@ -462,12 +462,12 @@ win_redr_status(win_T *wp, int ignore_pum UNUSED) | ||
40 | #endif | ||
41 | ) | ||
42 | { | ||
43 | - STRCPY(p + len, "[+]"); | ||
44 | - len += 3; | ||
45 | + vim_snprintf((char *)p + len, MAXPATHL - len, "%s", "[+]"); | ||
46 | + len += (int)STRLEN(p + len); | ||
47 | } | ||
48 | if (wp->w_buffer->b_p_ro) | ||
49 | { | ||
50 | - STRCPY(p + len, _("[RO]")); | ||
51 | + vim_snprintf((char *)p + len, MAXPATHL - len, "%s", _("[RO]")); | ||
52 | len += (int)STRLEN(p + len); | ||
53 | } | ||
54 | |||
55 | -- | ||
56 | 2.31.1 | ||
57 | |||
diff --git a/meta/recipes-support/vim/files/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch b/meta/recipes-support/vim/files/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch deleted file mode 100644 index 1cee759502..0000000000 --- a/meta/recipes-support/vim/files/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch +++ /dev/null | |||
@@ -1,207 +0,0 @@ | |||
1 | From b7081e135a16091c93f6f5f7525a5c58fb7ca9f9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bram Moolenaar <Bram@vim.org> | ||
3 | Date: Sat, 4 Sep 2021 18:47:28 +0200 | ||
4 | Subject: [PATCH] patch 8.2.3402: invalid memory access when using :retab with | ||
5 | large value | ||
6 | |||
7 | Problem: Invalid memory access when using :retab with large value. | ||
8 | Solution: Check the number is positive. | ||
9 | |||
10 | CVE: CVE-2021-3770 | ||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
12 | Upstream-Status: Backport [https://github.com/vim/vim/commit/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9] | ||
13 | --- | ||
14 | src/indent.c | 34 +++++++++++++++++++++------------- | ||
15 | src/option.c | 12 ++++++------ | ||
16 | src/optionstr.c | 4 ++-- | ||
17 | src/testdir/test_retab.vim | 3 +++ | ||
18 | src/version.c | 2 ++ | ||
19 | 5 files changed, 34 insertions(+), 21 deletions(-) | ||
20 | |||
21 | Index: git/src/indent.c | ||
22 | =================================================================== | ||
23 | --- git.orig/src/indent.c | ||
24 | +++ git/src/indent.c | ||
25 | @@ -18,18 +18,19 @@ | ||
26 | /* | ||
27 | * Set the integer values corresponding to the string setting of 'vartabstop'. | ||
28 | * "array" will be set, caller must free it if needed. | ||
29 | + * Return FAIL for an error. | ||
30 | */ | ||
31 | int | ||
32 | tabstop_set(char_u *var, int **array) | ||
33 | { | ||
34 | - int valcount = 1; | ||
35 | - int t; | ||
36 | - char_u *cp; | ||
37 | + int valcount = 1; | ||
38 | + int t; | ||
39 | + char_u *cp; | ||
40 | |||
41 | if (var[0] == NUL || (var[0] == '0' && var[1] == NUL)) | ||
42 | { | ||
43 | *array = NULL; | ||
44 | - return TRUE; | ||
45 | + return OK; | ||
46 | } | ||
47 | |||
48 | for (cp = var; *cp != NUL; ++cp) | ||
49 | @@ -43,8 +44,8 @@ tabstop_set(char_u *var, int **array) | ||
50 | if (cp != end) | ||
51 | emsg(_(e_positive)); | ||
52 | else | ||
53 | - emsg(_(e_invarg)); | ||
54 | - return FALSE; | ||
55 | + semsg(_(e_invarg2), cp); | ||
56 | + return FAIL; | ||
57 | } | ||
58 | } | ||
59 | |||
60 | @@ -55,26 +56,33 @@ tabstop_set(char_u *var, int **array) | ||
61 | ++valcount; | ||
62 | continue; | ||
63 | } | ||
64 | - emsg(_(e_invarg)); | ||
65 | - return FALSE; | ||
66 | + semsg(_(e_invarg2), var); | ||
67 | + return FAIL; | ||
68 | } | ||
69 | |||
70 | *array = ALLOC_MULT(int, valcount + 1); | ||
71 | if (*array == NULL) | ||
72 | - return FALSE; | ||
73 | + return FAIL; | ||
74 | (*array)[0] = valcount; | ||
75 | |||
76 | t = 1; | ||
77 | for (cp = var; *cp != NUL;) | ||
78 | { | ||
79 | - (*array)[t++] = atoi((char *)cp); | ||
80 | - while (*cp != NUL && *cp != ',') | ||
81 | + int n = atoi((char *)cp); | ||
82 | + | ||
83 | + if (n < 0 || n > 9999) | ||
84 | + { | ||
85 | + semsg(_(e_invarg2), cp); | ||
86 | + return FAIL; | ||
87 | + } | ||
88 | + (*array)[t++] = n; | ||
89 | + while (*cp != NUL && *cp != ',') | ||
90 | ++cp; | ||
91 | if (*cp != NUL) | ||
92 | ++cp; | ||
93 | } | ||
94 | |||
95 | - return TRUE; | ||
96 | + return OK; | ||
97 | } | ||
98 | |||
99 | /* | ||
100 | @@ -1556,7 +1564,7 @@ ex_retab(exarg_T *eap) | ||
101 | |||
102 | #ifdef FEAT_VARTABS | ||
103 | new_ts_str = eap->arg; | ||
104 | - if (!tabstop_set(eap->arg, &new_vts_array)) | ||
105 | + if (tabstop_set(eap->arg, &new_vts_array) == FAIL) | ||
106 | return; | ||
107 | while (vim_isdigit(*(eap->arg)) || *(eap->arg) == ',') | ||
108 | ++(eap->arg); | ||
109 | Index: git/src/option.c | ||
110 | =================================================================== | ||
111 | --- git.orig/src/option.c | ||
112 | +++ git/src/option.c | ||
113 | @@ -2292,9 +2292,9 @@ didset_options2(void) | ||
114 | #endif | ||
115 | #ifdef FEAT_VARTABS | ||
116 | vim_free(curbuf->b_p_vsts_array); | ||
117 | - tabstop_set(curbuf->b_p_vsts, &curbuf->b_p_vsts_array); | ||
118 | + (void)tabstop_set(curbuf->b_p_vsts, &curbuf->b_p_vsts_array); | ||
119 | vim_free(curbuf->b_p_vts_array); | ||
120 | - tabstop_set(curbuf->b_p_vts, &curbuf->b_p_vts_array); | ||
121 | + (void)tabstop_set(curbuf->b_p_vts, &curbuf->b_p_vts_array); | ||
122 | #endif | ||
123 | } | ||
124 | |||
125 | @@ -5756,7 +5756,7 @@ buf_copy_options(buf_T *buf, int flags) | ||
126 | buf->b_p_vsts = vim_strsave(p_vsts); | ||
127 | COPY_OPT_SCTX(buf, BV_VSTS); | ||
128 | if (p_vsts && p_vsts != empty_option) | ||
129 | - tabstop_set(p_vsts, &buf->b_p_vsts_array); | ||
130 | + (void)tabstop_set(p_vsts, &buf->b_p_vsts_array); | ||
131 | else | ||
132 | buf->b_p_vsts_array = 0; | ||
133 | buf->b_p_vsts_nopaste = p_vsts_nopaste | ||
134 | @@ -5914,7 +5914,7 @@ buf_copy_options(buf_T *buf, int flags) | ||
135 | buf->b_p_isk = save_p_isk; | ||
136 | #ifdef FEAT_VARTABS | ||
137 | if (p_vts && p_vts != empty_option && !buf->b_p_vts_array) | ||
138 | - tabstop_set(p_vts, &buf->b_p_vts_array); | ||
139 | + (void)tabstop_set(p_vts, &buf->b_p_vts_array); | ||
140 | else | ||
141 | buf->b_p_vts_array = NULL; | ||
142 | #endif | ||
143 | @@ -5929,7 +5929,7 @@ buf_copy_options(buf_T *buf, int flags) | ||
144 | buf->b_p_vts = vim_strsave(p_vts); | ||
145 | COPY_OPT_SCTX(buf, BV_VTS); | ||
146 | if (p_vts && p_vts != empty_option && !buf->b_p_vts_array) | ||
147 | - tabstop_set(p_vts, &buf->b_p_vts_array); | ||
148 | + (void)tabstop_set(p_vts, &buf->b_p_vts_array); | ||
149 | else | ||
150 | buf->b_p_vts_array = NULL; | ||
151 | #endif | ||
152 | @@ -6634,7 +6634,7 @@ paste_option_changed(void) | ||
153 | if (buf->b_p_vsts_array) | ||
154 | vim_free(buf->b_p_vsts_array); | ||
155 | if (buf->b_p_vsts && buf->b_p_vsts != empty_option) | ||
156 | - tabstop_set(buf->b_p_vsts, &buf->b_p_vsts_array); | ||
157 | + (void)tabstop_set(buf->b_p_vsts, &buf->b_p_vsts_array); | ||
158 | else | ||
159 | buf->b_p_vsts_array = 0; | ||
160 | #endif | ||
161 | Index: git/src/optionstr.c | ||
162 | =================================================================== | ||
163 | --- git.orig/src/optionstr.c | ||
164 | +++ git/src/optionstr.c | ||
165 | @@ -2166,7 +2166,7 @@ did_set_string_option( | ||
166 | if (errmsg == NULL) | ||
167 | { | ||
168 | int *oldarray = curbuf->b_p_vsts_array; | ||
169 | - if (tabstop_set(*varp, &(curbuf->b_p_vsts_array))) | ||
170 | + if (tabstop_set(*varp, &(curbuf->b_p_vsts_array)) == OK) | ||
171 | { | ||
172 | if (oldarray) | ||
173 | vim_free(oldarray); | ||
174 | @@ -2205,7 +2205,7 @@ did_set_string_option( | ||
175 | { | ||
176 | int *oldarray = curbuf->b_p_vts_array; | ||
177 | |||
178 | - if (tabstop_set(*varp, &(curbuf->b_p_vts_array))) | ||
179 | + if (tabstop_set(*varp, &(curbuf->b_p_vts_array)) == OK) | ||
180 | { | ||
181 | vim_free(oldarray); | ||
182 | #ifdef FEAT_FOLDING | ||
183 | Index: git/src/testdir/test_retab.vim | ||
184 | =================================================================== | ||
185 | --- git.orig/src/testdir/test_retab.vim | ||
186 | +++ git/src/testdir/test_retab.vim | ||
187 | @@ -74,4 +74,7 @@ endfunc | ||
188 | func Test_retab_error() | ||
189 | call assert_fails('retab -1', 'E487:') | ||
190 | call assert_fails('retab! -1', 'E487:') | ||
191 | + call assert_fails('ret -1000', 'E487:') | ||
192 | + call assert_fails('ret 10000', 'E475:') | ||
193 | + call assert_fails('ret 80000000000000000000', 'E475:') | ||
194 | endfunc | ||
195 | Index: git/src/version.c | ||
196 | =================================================================== | ||
197 | --- git.orig/src/version.c | ||
198 | +++ git/src/version.c | ||
199 | @@ -743,6 +743,8 @@ static char *(features[]) = | ||
200 | static int included_patches[] = | ||
201 | { /* Add new patch number below this line */ | ||
202 | /**/ | ||
203 | + 3402, | ||
204 | +/**/ | ||
205 | 0 | ||
206 | }; | ||
207 | |||
diff --git a/meta/recipes-support/vim/files/disable_acl_header_check.patch b/meta/recipes-support/vim/files/disable_acl_header_check.patch index 33089162b4..533138245d 100644 --- a/meta/recipes-support/vim/files/disable_acl_header_check.patch +++ b/meta/recipes-support/vim/files/disable_acl_header_check.patch | |||
@@ -13,11 +13,11 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
13 | src/configure.ac | 3 ++- | 13 | src/configure.ac | 3 ++- |
14 | 1 file changed, 2 insertions(+), 1 deletion(-) | 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/src/configure.ac b/src/configure.ac | 16 | Index: git/src/configure.ac |
17 | index 2d409b3ca06a..dbcaf6140263 100644 | 17 | =================================================================== |
18 | --- a/src/configure.ac | 18 | --- git.orig/src/configure.ac |
19 | +++ b/src/configure.ac | 19 | +++ git/src/configure.ac |
20 | @@ -3257,7 +3257,7 @@ AC_CHECK_HEADERS(stdint.h stdlib.h string.h \ | 20 | @@ -3292,7 +3292,7 @@ AC_CHECK_HEADERS(stdint.h stdlib.h strin |
21 | sys/systeminfo.h locale.h sys/stream.h termios.h \ | 21 | sys/systeminfo.h locale.h sys/stream.h termios.h \ |
22 | libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ | 22 | libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ |
23 | utime.h sys/param.h sys/ptms.h libintl.h libgen.h \ | 23 | utime.h sys/param.h sys/ptms.h libintl.h libgen.h \ |
@@ -26,7 +26,7 @@ index 2d409b3ca06a..dbcaf6140263 100644 | |||
26 | sys/access.h sys/sysinfo.h wchar.h wctype.h) | 26 | sys/access.h sys/sysinfo.h wchar.h wctype.h) |
27 | 27 | ||
28 | dnl sys/ptem.h depends on sys/stream.h on Solaris | 28 | dnl sys/ptem.h depends on sys/stream.h on Solaris |
29 | @@ -3886,6 +3886,7 @@ AC_ARG_ENABLE(acl, | 29 | @@ -3974,6 +3974,7 @@ AC_ARG_ENABLE(acl, |
30 | , [enable_acl="yes"]) | 30 | , [enable_acl="yes"]) |
31 | if test "$enable_acl" = "yes"; then | 31 | if test "$enable_acl" = "yes"; then |
32 | AC_MSG_RESULT(no) | 32 | AC_MSG_RESULT(no) |
@@ -34,6 +34,3 @@ index 2d409b3ca06a..dbcaf6140263 100644 | |||
34 | AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"], | 34 | AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"], |
35 | AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl" | 35 | AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl" |
36 | AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),) | 36 | AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),) |
37 | -- | ||
38 | 2.7.4 | ||
39 | |||
diff --git a/meta/recipes-support/vim/files/no-path-adjust.patch b/meta/recipes-support/vim/files/no-path-adjust.patch index 05c2d803f6..9d6da80913 100644 --- a/meta/recipes-support/vim/files/no-path-adjust.patch +++ b/meta/recipes-support/vim/files/no-path-adjust.patch | |||
@@ -7,9 +7,11 @@ Upstream-Status: Pending | |||
7 | 7 | ||
8 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | 8 | Signed-off-by: Joe Slater <joe.slater@windriver.com> |
9 | 9 | ||
10 | --- a/src/Makefile | 10 | Index: git/src/Makefile |
11 | +++ b/src/Makefile | 11 | =================================================================== |
12 | @@ -2507,11 +2507,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_ | 12 | --- git.orig/src/Makefile |
13 | +++ git/src/Makefile | ||
14 | @@ -2565,11 +2565,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_ | ||
13 | rm -rf $$cvs; \ | 15 | rm -rf $$cvs; \ |
14 | fi | 16 | fi |
15 | -chmod $(FILEMOD) $(DEST_TOOLS)/* | 17 | -chmod $(FILEMOD) $(DEST_TOOLS)/* |
diff --git a/meta/recipes-support/vim/files/racefix.patch b/meta/recipes-support/vim/files/racefix.patch index 48dca44cad..1cb8fb442f 100644 --- a/meta/recipes-support/vim/files/racefix.patch +++ b/meta/recipes-support/vim/files/racefix.patch | |||
@@ -9,9 +9,9 @@ Index: git/src/po/Makefile | |||
9 | =================================================================== | 9 | =================================================================== |
10 | --- git.orig/src/po/Makefile | 10 | --- git.orig/src/po/Makefile |
11 | +++ git/src/po/Makefile | 11 | +++ git/src/po/Makefile |
12 | @@ -165,17 +165,16 @@ $(PACKAGE).pot: ../*.c ../if_perl.xs ../ | 12 | @@ -207,17 +207,16 @@ $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM |
13 | po/gvim.desktop.in po/vim.desktop.in | 13 | # Delete the temporary files |
14 | mv -f ../$(PACKAGE).po $(PACKAGE).pot | 14 | rm *.js |
15 | 15 | ||
16 | -vim.desktop: vim.desktop.in $(POFILES) | 16 | -vim.desktop: vim.desktop.in $(POFILES) |
17 | +LINGUAS: | 17 | +LINGUAS: |
diff --git a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch b/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch index 37914d4cd9..5284ba45b6 100644 --- a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch +++ b/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch | |||
@@ -14,11 +14,11 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
14 | src/configure.ac | 7 +++++++ | 14 | src/configure.ac | 7 +++++++ |
15 | 1 file changed, 7 insertions(+) | 15 | 1 file changed, 7 insertions(+) |
16 | 16 | ||
17 | diff --git a/src/configure.ac b/src/configure.ac | 17 | Index: git/src/configure.ac |
18 | index 0ee86ad..64736f0 100644 | 18 | =================================================================== |
19 | --- a/src/configure.ac | 19 | --- git.orig/src/configure.ac |
20 | +++ b/src/configure.ac | 20 | +++ git/src/configure.ac |
21 | @@ -3192,11 +3192,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [int x __attribute__((unused));], | 21 | @@ -3264,11 +3264,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [in |
22 | AC_MSG_RESULT(no)) | 22 | AC_MSG_RESULT(no)) |
23 | 23 | ||
24 | dnl Checks for header files. | 24 | dnl Checks for header files. |
@@ -37,6 +37,3 @@ index 0ee86ad..64736f0 100644 | |||
37 | 37 | ||
38 | AC_HEADER_DIRENT | 38 | AC_HEADER_DIRENT |
39 | 39 | ||
40 | -- | ||
41 | 2.7.4 | ||
42 | |||
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 864006192b..c124596e8d 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc | |||
@@ -8,8 +8,10 @@ BUGTRACKER = "https://github.com/vim/vim/issues" | |||
8 | DEPENDS = "ncurses gettext-native" | 8 | DEPENDS = "ncurses gettext-native" |
9 | # vimdiff doesn't like busybox diff | 9 | # vimdiff doesn't like busybox diff |
10 | RSUGGESTS_${PN} = "diffutils" | 10 | RSUGGESTS_${PN} = "diffutils" |
11 | |||
11 | LICENSE = "vim" | 12 | LICENSE = "vim" |
12 | LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=a19edd7ec70d573a005d9e509375a99a" | 13 | LIC_FILES_CHKSUM = "file://LICENSE;md5=6b30ea4fa660c483b619924bc709ef99 \ |
14 | file://runtime/doc/uganda.txt;md5=a3f193c20c6faff93c69185d5d070535" | ||
13 | 15 | ||
14 | SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ | 16 | SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ |
15 | file://disable_acl_header_check.patch \ | 17 | file://disable_acl_header_check.patch \ |
@@ -17,17 +19,10 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ | |||
17 | file://0001-src-Makefile-improve-reproducibility.patch \ | 19 | file://0001-src-Makefile-improve-reproducibility.patch \ |
18 | file://no-path-adjust.patch \ | 20 | file://no-path-adjust.patch \ |
19 | file://racefix.patch \ | 21 | file://racefix.patch \ |
20 | file://CVE-2021-3778.patch \ | ||
21 | file://CVE-2021-3796.patch \ | ||
22 | file://b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch \ | ||
23 | file://CVE-2021-3903.patch \ | ||
24 | file://CVE-2021-3872.patch \ | ||
25 | file://CVE-2021-3875.patch \ | ||
26 | file://CVE-2021-3927.patch \ | ||
27 | file://CVE-2021-3928.patch \ | ||
28 | " | 22 | " |
29 | 23 | ||
30 | SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44" | 24 | PV .= ".4524" |
25 | SRCREV = "d8f8629b1bf566e1dada7515e9b146c69e5d9757" | ||
31 | 26 | ||
32 | # Do not consider .z in x.y.z, as that is updated with every commit | 27 | # Do not consider .z in x.y.z, as that is updated with every commit |
33 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" | 28 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" |