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
d958cc96
Kaydet (Commit)
d958cc96
authored
Haz 28, 2012
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.
üst
45f0d983
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
test_hashlib.py
Lib/test/test_hashlib.py
+2
-6
NEWS
Misc/NEWS
+3
-0
_hashopenssl.c
Modules/_hashopenssl.c
+1
-0
No files found.
Lib/test/test_hashlib.py
Dosyayı görüntüle @
d958cc96
...
@@ -108,12 +108,8 @@ class HashLibTestCase(unittest.TestCase):
...
@@ -108,12 +108,8 @@ class HashLibTestCase(unittest.TestCase):
_algo
.
islower
()]))
_algo
.
islower
()]))
def
test_unknown_hash
(
self
):
def
test_unknown_hash
(
self
):
try
:
self
.
assertRaises
(
ValueError
,
hashlib
.
new
,
'spam spam spam spam spam'
)
hashlib
.
new
(
'spam spam spam spam spam'
)
self
.
assertRaises
(
TypeError
,
hashlib
.
new
,
1
)
except
ValueError
:
pass
else
:
self
.
assertTrue
(
0
==
"hashlib didn't reject bogus hash name"
)
def
test_get_builtin_constructor
(
self
):
def
test_get_builtin_constructor
(
self
):
get_builtin_constructor
=
hashlib
.
__dict__
[
get_builtin_constructor
=
hashlib
.
__dict__
[
...
...
Misc/NEWS
Dosyayı görüntüle @
d958cc96
...
@@ -75,6 +75,9 @@ Core and Builtins
...
@@ -75,6 +75,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.
- Issue #9559: If messages were only added, a new file is no longer
- Issue #9559: If messages were only added, a new file is no longer
created and renamed over the old file when flush() is called on an
created and renamed over the old file when flush() is called on an
mbox, MMDF or Babyl mailbox.
mbox, MMDF or Babyl mailbox.
...
...
Modules/_hashopenssl.c
Dosyayı görüntüle @
d958cc96
...
@@ -477,6 +477,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
...
@@ -477,6 +477,7 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
}
}
if
(
!
PyArg_Parse
(
name_obj
,
"s"
,
&
name
))
{
if
(
!
PyArg_Parse
(
name_obj
,
"s"
,
&
name
))
{
PyBuffer_Release
(
&
view
);
PyErr_SetString
(
PyExc_TypeError
,
"name must be a string"
);
PyErr_SetString
(
PyExc_TypeError
,
"name must be a string"
);
return
NULL
;
return
NULL
;
}
}
...
...
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