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
196d7db3
Kaydet (Commit)
196d7db3
authored
Haz 11, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
upgrade expt to 2.1.1 (closes #26556)
üst
46b32f30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
NEWS
Misc/NEWS
+2
-0
expat.h
Modules/expat/expat.h
+1
-1
xmlparse.c
Modules/expat/xmlparse.c
+22
-4
xmltok.c
Modules/expat/xmltok.c
+1
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
196d7db3
...
...
@@ -19,6 +19,8 @@ Core and Builtins
Library
-------
- Issue #26556: Update expat to 2.1.1, fixes CVE-2015-1283.
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
Oststrom
...
...
Modules/expat/expat.h
Dosyayı görüntüle @
196d7db3
...
...
@@ -1040,7 +1040,7 @@ XML_GetFeatureList(void);
*/
#define XML_MAJOR_VERSION 2
#define XML_MINOR_VERSION 1
#define XML_MICRO_VERSION
0
#define XML_MICRO_VERSION
1
#ifdef __cplusplus
}
...
...
Modules/expat/xmlparse.c
Dosyayı görüntüle @
196d7db3
...
...
@@ -1550,7 +1550,7 @@ XML_Parse(XML_Parser parser, const char *s, int len, int isFinal)
else
if
(
bufferPtr
==
bufferEnd
)
{
const
char
*
end
;
int
nLeftOver
;
enum
XML_
Error
result
;
enum
XML_
Status
result
;
parseEndByteIndex
+=
len
;
positionPtr
=
s
;
ps_finalBuffer
=
(
XML_Bool
)
isFinal
;
...
...
@@ -1678,6 +1678,10 @@ XML_ParseBuffer(XML_Parser parser, int len, int isFinal)
void
*
XMLCALL
XML_GetBuffer
(
XML_Parser
parser
,
int
len
)
{
if
(
len
<
0
)
{
errorCode
=
XML_ERROR_NO_MEMORY
;
return
NULL
;
}
switch
(
ps_parsing
)
{
case
XML_SUSPENDED
:
errorCode
=
XML_ERROR_SUSPENDED
;
...
...
@@ -1689,10 +1693,16 @@ XML_GetBuffer(XML_Parser parser, int len)
}
if
(
len
>
bufferLim
-
bufferEnd
)
{
/* FIXME avoid integer overflow */
#ifdef XML_CONTEXT_BYTES
int
keep
;
#endif
int
neededSize
=
len
+
(
int
)(
bufferEnd
-
bufferPtr
);
if
(
neededSize
<
0
)
{
errorCode
=
XML_ERROR_NO_MEMORY
;
return
NULL
;
}
#ifdef XML_CONTEXT_BYTES
int
keep
=
(
int
)(
bufferPtr
-
buffer
);
keep
=
(
int
)(
bufferPtr
-
buffer
);
if
(
keep
>
XML_CONTEXT_BYTES
)
keep
=
XML_CONTEXT_BYTES
;
...
...
@@ -1719,7 +1729,11 @@ XML_GetBuffer(XML_Parser parser, int len)
bufferSize
=
INIT_BUFFER_SIZE
;
do
{
bufferSize
*=
2
;
}
while
(
bufferSize
<
neededSize
);
}
while
(
bufferSize
<
neededSize
&&
bufferSize
>
0
);
if
(
bufferSize
<=
0
)
{
errorCode
=
XML_ERROR_NO_MEMORY
;
return
NULL
;
}
newBuf
=
(
char
*
)
MALLOC
(
bufferSize
);
if
(
newBuf
==
0
)
{
errorCode
=
XML_ERROR_NO_MEMORY
;
...
...
@@ -2911,6 +2925,8 @@ storeAtts(XML_Parser parser, const ENCODING *enc,
unsigned
long
uriHash
=
hash_secret_salt
;
((
XML_Char
*
)
s
)[
-
1
]
=
0
;
/* clear flag */
id
=
(
ATTRIBUTE_ID
*
)
lookup
(
parser
,
&
dtd
->
attributeIds
,
s
,
0
);
if
(
!
id
||
!
id
->
prefix
)
return
XML_ERROR_NO_MEMORY
;
b
=
id
->
prefix
->
binding
;
if
(
!
b
)
return
XML_ERROR_UNBOUND_PREFIX
;
...
...
@@ -5475,6 +5491,8 @@ getAttributeId(XML_Parser parser, const ENCODING *enc,
return
NULL
;
id
->
prefix
=
(
PREFIX
*
)
lookup
(
parser
,
&
dtd
->
prefixes
,
poolStart
(
&
dtd
->
pool
),
sizeof
(
PREFIX
));
if
(
!
id
->
prefix
)
return
NULL
;
if
(
id
->
prefix
->
name
==
poolStart
(
&
dtd
->
pool
))
poolFinish
(
&
dtd
->
pool
);
else
...
...
Modules/expat/xmltok.c
Dosyayı görüntüle @
196d7db3
...
...
@@ -1584,7 +1584,7 @@ initScan(const ENCODING * const *encodingTable,
if
(
ptr
[
0
]
==
'\0'
)
{
/* 0 isn't a legal data character. Furthermore a document
entity can only start with ASCII characters. So the only
way this can fail to be big-endian UTF-16 i
s if it i
s an
way this can fail to be big-endian UTF-16 i
f it it'
s an
external parsed general entity that's labelled as
UTF-16LE.
*/
...
...
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