| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Oh, the test_xml_etree_c failure is a legit failure: unicode_encode_ucs1() calls with errors="xmlcharrefreplace" writes a NUL byte after the writer buffer. xmlcharrefreplace() calls sprintf(str, "&#%d;", PyUnicode_READ(kind, data, i)) which writes a final NUL byte. |
Sorry, something went wrong.
|
The test_struct error is also a legit bug: a Pascal string of 0 characters writes a NUL byte into an empty buffer, and so triggers a buffer overflow. |
Sorry, something went wrong.
|
On Ubuntu, 8 tests are failing: 8 tests failed:
test_codeccallbacks test_fcntl test_minidom test_sax test_struct
test_urllib test_xml_etree test_xml_etree_c
|
Sorry, something went wrong.
Reserve one byte in PyBytesWriter used as a canary byte: set it to a special value. PyBytesWriter_Finish() checks if the canary byte has been overriden. Add a test on the feature. Update buffer overflow check in fcntl: allocate extra guard bytes in the writer and then truncate these bytes.
Sorry, something went wrong.
Avoid calling PyBytesWriter_Grow().
Sorry, something went wrong.
* Add test_get_data_canary() * Update test_get_data()
unicode_encode_ucs1() now calls PyBytesWriter_Grow() to update the PyBytesWriter size.
PyBytesWriter_Grow() no longer calls byteswriter_resize() if grow is smaller than 0.
|
Android x86_64 fails with: ERROR: test_str (test.test_android.TestAndroidOutput.test_str) [stdout]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
This error comes from PyBytesWriter_FinishWithSize(): the requested size is too big. I can reproduce it with just: >>> "\ud800\udc00".encode('utf8', 'backslashreplace')
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
"\ud800\udc00".encode('utf8', 'backslashreplace')
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: size larger than allocated sizeAh! I forgot to update the UTF-8 encoder. |
Sorry, something went wrong.
I wrote PR gh-157383 for that. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot aarch64 Android 3.x (tier-3) has failed when building commit 12a1de1. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1594/builds/5913 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
======================================================================
ERROR: test_str (test.test_android.TestAndroidOutput.test_str) [stderr]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
----------------------------------------------------------------------
Ran 3 tests in 0.081s
FAILED (errors=2)
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
======================================================================
ERROR: test_str (test.test_android.TestAndroidOutput.test_str) [stderr]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
----------------------------------------------------------------------
Ran 3 tests in 0.134s
FAILED (errors=2)
bytearraymemoryviewmmrve\xc0\x80\xc0\x80�\xc0\x80\xfe\xff\xff\xffaHelloHello world olé中文😀test test_android failed
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Android 3.x (tier-3) has failed when building commit 12a1de1. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1591/builds/5239 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
======================================================================
ERROR: test_str (test.test_android.TestAndroidOutput.test_str) [stderr]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
----------------------------------------------------------------------
Ran 3 tests in 0.595s
FAILED (errors=2)
bytearraymemoryviewmmrve\xc0\x80\xc0\x80�\xc0\x80\xfe\xff\xff\xffaHelloHello world olé中文😀test test_android failed
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
======================================================================
ERROR: test_str (test.test_android.TestAndroidOutput.test_str) [stderr]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 171, in test_str
write("\ud800\udc00", [r"\ud800\udc00"])
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/test/test_android.py", line 148, in write
self.assertEqual(write_len, stream.write(s))
~~~~~~~~~~~~^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 76, in write
self._write_chunk(chunk)
~~~~~~~~~~~~~~~~~^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.16/_android_support.py", line 83, in _write_chunk
b = s.encode(self.encoding, self.errors)
ValueError: size larger than allocated size
----------------------------------------------------------------------
Ran 3 tests in 0.228s
FAILED (errors=2)
|
Sorry, something went wrong.
python#156943) Reserve one byte in PyBytesWriter used as a canary byte: set it to a special value. PyBytesWriter_Finish() checks if the canary byte has been overriden to detect a buffer overflow. Add tests for this feature. Update buffer overflow check in fcntl: allocate extra guard bytes in the writer and then truncate these bytes.
| Back | FazBrowse Home | New Git URL |
Reserve one byte in PyBytesWriter used as a canary byte: set it to a special value. PyBytesWriter_Finish() checks if the canary byte has been overriden. Add a test on the feature.
Update buffer overflow check in fcntl: allocate extra guard bytes in the writer and then truncate these bytes.