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
92d8917f
Kaydet (Commit)
92d8917f
authored
Ock 09, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Address a bug in the uuencode decoder, reported bu "donut" in SF bug
#127718: '@' and '`' seem to be confused.
üst
dcf5715d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
binascii.c
Modules/binascii.c
+3
-3
No files found.
Modules/binascii.c
Dosyayı görüntüle @
92d8917f
...
@@ -204,7 +204,7 @@ binascii_a2b_uu(PyObject *self, PyObject *args)
...
@@ -204,7 +204,7 @@ binascii_a2b_uu(PyObject *self, PyObject *args)
/* Check the character for legality
/* Check the character for legality
** The 64 in stead of the expected 63 is because
** The 64 in stead of the expected 63 is because
** there are a few uuencodes out there that use
** there are a few uuencodes out there that use
** '
@
' as zero instead of space.
** '
`
' as zero instead of space.
*/
*/
if
(
this_ch
<
' '
||
this_ch
>
(
' '
+
64
))
{
if
(
this_ch
<
' '
||
this_ch
>
(
' '
+
64
))
{
PyErr_SetString
(
Error
,
"Illegal char"
);
PyErr_SetString
(
Error
,
"Illegal char"
);
...
@@ -232,8 +232,8 @@ binascii_a2b_uu(PyObject *self, PyObject *args)
...
@@ -232,8 +232,8 @@ binascii_a2b_uu(PyObject *self, PyObject *args)
*/
*/
while
(
ascii_len
--
>
0
)
{
while
(
ascii_len
--
>
0
)
{
this_ch
=
*
ascii_data
++
;
this_ch
=
*
ascii_data
++
;
/* Extra '
@
' may be written as padding in some cases */
/* Extra '
`
' may be written as padding in some cases */
if
(
this_ch
!=
' '
&&
this_ch
!=
'
@'
&&
if
(
this_ch
!=
' '
&&
this_ch
!=
'
'
+
64
&&
this_ch
!=
'\n'
&&
this_ch
!=
'\r'
)
{
this_ch
!=
'\n'
&&
this_ch
!=
'\r'
)
{
PyErr_SetString
(
Error
,
"Trailing garbage"
);
PyErr_SetString
(
Error
,
"Trailing garbage"
);
Py_DECREF
(
rv
);
Py_DECREF
(
rv
);
...
...
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