forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork0
Commitd31a803
committed
Backport of SF patch 590294: os._execvpe security fix (Zack Weinberg).
1) Do not attempt to exec a file which does not existjust to find out what error the operating systemreturns. This is an exploitable race on all platformsthat support symbolic links.2) Immediately re-raise the exception if we get anerror other than errno.ENOENT or errno.ENOTDIR. Thismay need to be adapted for other platforms.1 parenta1a5a89 commitd31a803
1 file changed
+6
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | 304 | | |
| 305 | + | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 324 | | |
339 | 325 | | |
340 | 326 | | |
341 | 327 | | |
342 | 328 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
347 | 332 | | |
348 | 333 | | |
349 | 334 | | |
| |||
0 commit comments
Comments
(0)