Преглед на файлове

Change large math/big test literals to hex.

In September 2022, the Python team addressed a possible DoS issue converting big integers to and from base 10 strings: https://github.com/python/cpython/issues/95778

Converting to/from base 10 is a quadratic operation, so they limited it to 4300 digits: https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889/83

Github CI still uses an old Python version which parsed our test suite just fine. This patch converts them to hex literals to ensure our test doesn't break when Github does update to a non-vulnerable Python version released after September 2022.
Jeroen van Rijn преди 2 години
родител
ревизия
07cd6cd670
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      tests/core/.gitignore
  2. 0 0
      tests/core/math/big/test.py

+ 2 - 1
tests/core/.gitignore

@@ -1,2 +1,3 @@
 *.zip
-*.png
+*.png
+math_big_test_library.*

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
tests/core/math/big/test.py


Някои файлове не бяха показани, защото твърде много файлове са промени