Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
edb5e1e0
Kaydet (Commit)
edb5e1e0
authored
Nis 04, 2009
tarafından
Matthias Klose
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with
short file names.
üst
29b36308
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
NEWS
Misc/NEWS
+3
-0
pythonrun.c
Python/pythonrun.c
+3
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
edb5e1e0
...
...
@@ -204,6 +204,9 @@ Core and Builtins
- The re.sub(), re.subn() and re.split() functions now accept a flags parameter.
- Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with
short file names.
Library
-------
...
...
Python/pythonrun.c
Dosyayı görüntüle @
edb5e1e0
...
...
@@ -898,7 +898,7 @@ PyRun_SimpleFileExFlags(FILE *fp, const char *filename, int closeit,
{
PyObject
*
m
,
*
d
,
*
v
;
const
char
*
ext
;
int
set_file_name
=
0
,
ret
;
int
set_file_name
=
0
,
ret
,
len
;
m
=
PyImport_AddModule
(
"__main__"
);
if
(
m
==
NULL
)
...
...
@@ -915,7 +915,8 @@ PyRun_SimpleFileExFlags(FILE *fp, const char *filename, int closeit,
set_file_name
=
1
;
Py_DECREF
(
f
);
}
ext
=
filename
+
strlen
(
filename
)
-
4
;
len
=
strlen
(
filename
);
ext
=
filename
+
len
-
(
len
>
4
?
4
:
0
);
if
(
maybe_pyc_file
(
fp
,
filename
,
ext
,
closeit
))
{
/* Try to run a pyc file. First, re-open in binary */
if
(
closeit
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment