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
1df2cbed
Kaydet (Commit)
1df2cbed
authored
Eki 06, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mmap: do all internal arithmetic with Py_ssize_t while being very careful about overflow
üst
ab8b75a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
test_mmap.py
Lib/test/test_mmap.py
+10
-0
NEWS
Misc/NEWS
+3
-0
mmapmodule.c
Modules/mmapmodule.c
+0
-0
No files found.
Lib/test/test_mmap.py
Dosyayı görüntüle @
1df2cbed
...
...
@@ -652,6 +652,16 @@ class MmapTests(unittest.TestCase):
finally
:
s
.
close
()
def
test_resize_past_pos
(
self
):
m
=
mmap
.
mmap
(
-
1
,
8192
)
self
.
addCleanup
(
m
.
close
)
m
.
read
(
5000
)
m
.
resize
(
4096
)
self
.
assertEqual
(
m
.
read
(
14
),
''
)
self
.
assertRaises
(
ValueError
,
m
.
read_byte
,)
self
.
assertRaises
(
ValueError
,
m
.
write_byte
,
'b'
)
self
.
assertRaises
(
ValueError
,
m
.
write
,
'abc'
)
class
LargeMmapTests
(
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
1df2cbed
...
...
@@ -46,6 +46,9 @@ Core and Builtins
Library
-------
- Fix possible integer overflows and crashes in the mmap module with unusual
usage patterns.
- Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation()
if pass invalid string-like object as a name. Original patch by Xiang Zhang.
...
...
Modules/mmapmodule.c
Dosyayı görüntüle @
1df2cbed
This diff is collapsed.
Click to expand it.
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