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
acd61b6e
Kaydet (Commit)
acd61b6e
authored
Tem 28, 2015
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24735: Fix invalid memory access in combinations_with_replacement()
üst
aaf6114b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
NEWS
Misc/NEWS
+3
-0
itertoolsmodule.c
Modules/itertoolsmodule.c
+7
-5
No files found.
Misc/NEWS
Dosyayı görüntüle @
acd61b6e
...
...
@@ -69,6 +69,9 @@ Library
-
Issue
#
23441
:
rcompleter
now
prints
a
tab
character
instead
of
displaying
possible
completions
for
an
empty
word
.
Initial
patch
by
Martin
Sekera
.
-
Issue
#
24735
:
Fix
invalid
memory
access
in
itertools
.
combinations_with_replacement
().
-
Issue
#
17527
:
Add
PATCH
to
wsgiref
.
validator
.
Patch
from
Luca
Sbardella
.
-
Issue
#
24683
:
Fixed
crashes
in
_json
functions
called
with
arguments
of
...
...
Modules/itertoolsmodule.c
Dosyayı görüntüle @
acd61b6e
...
...
@@ -2787,11 +2787,13 @@ cwr_next(cwrobject *co)
if
(
result
==
NULL
)
goto
empty
;
co
->
result
=
result
;
elem
=
PyTuple_GET_ITEM
(
pool
,
0
);
for
(
i
=
0
;
i
<
r
;
i
++
)
{
assert
(
indices
[
i
]
==
0
);
Py_INCREF
(
elem
);
PyTuple_SET_ITEM
(
result
,
i
,
elem
);
if
(
n
>
0
)
{
elem
=
PyTuple_GET_ITEM
(
pool
,
0
);
for
(
i
=
0
;
i
<
r
;
i
++
)
{
assert
(
indices
[
i
]
==
0
);
Py_INCREF
(
elem
);
PyTuple_SET_ITEM
(
result
,
i
,
elem
);
}
}
}
else
{
/* Copy the previous result tuple or re-use it if available */
...
...
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