Jeroen van Rijn
4d89249caf
Merge pull request #2939 from laytan/allow-larger-thread-poly-data
...
Allow larger thread poly data
2023-11-24 14:06:24 +01:00
laytan
2e64866838
fix self_cleanup causing join to fail
2023-11-20 21:23:12 +01:00
Yawning Angel
59950bcad6
core/crypto: Exile keccak, md5 and sha1 to legacy
...
In an perfect world these would just be removed, but the world is
imperfect, and people are forced to interact/interface with things
that are broken.
2023-11-17 19:32:11 +09:00
Yawning Angel
8af6da5de1
core/crypto/whirlpool: Remove, historical/exotic
2023-11-17 19:31:51 +09:00
Yawning Angel
0b86038482
core/crypto/tiger: Remove, historical/exotic
2023-11-17 19:31:51 +09:00
Yawning Angel
8d943f5902
core/crypto/streebog: Remove, exotic
2023-11-17 19:31:51 +09:00
Yawning Angel
3494a6dcd8
core/crypto/ripemd: Remove, historical/exotic
2023-11-17 19:31:51 +09:00
Yawning Angel
235fec23af
core/crypto/md4: Remove, badly broken
2023-11-17 19:31:51 +09:00
Yawning Angel
97b066f112
core/crypto/md2: Remove, badly broken
2023-11-17 19:31:51 +09:00
Yawning Angel
a99c0b3e4a
core/crypto/jh: Remove, use SHA-3
2023-11-17 19:31:51 +09:00
Yawning Angel
2a6fb3a387
core/crypto/haval: Remove, badly broken
2023-11-17 19:31:51 +09:00
Yawning Angel
65204f13a8
core/crypto/groestl: Remove, use SHA-3
2023-11-17 19:31:51 +09:00
Yawning Angel
8438d66e6b
core/crypto/gost: Remove, exotic
2023-11-17 19:31:51 +09:00
Yawning Angel
44c8da7bf2
core/crypto/blake: Remove, use BLAKE2b/BLAKE2s
2023-11-17 19:31:51 +09:00
Yawning Angel
41fdcfeecf
core/crypto/sha2: Add SHA-512/256
2023-11-17 19:31:51 +09:00
Laytan Laats
50f86dc14f
Fix shadowing
2023-11-15 19:08:05 +01:00
Laytan Laats
9078ddaf5a
Allow larger thread poly data
...
The poly data currently has the restriction of being less than a
pointer's size, but there is much more space in the `Thread.user_args`
array which can be utilized, this commit allows you to pass types that are
larger than pointer length as long as the total size of the poly data is
less than that of the `Thread.user_args`.
2023-11-15 19:08:03 +01:00
Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Rickard Andersson
2e3224a138
testing: add test for Out_Of_Memory return
2023-10-02 15:17:06 +03:00
Jeroen van Rijn
81fe93127d
Make core:net test os.exit(1) on failure.
2023-09-30 22:47:49 +02:00
Jeroen van Rijn
aa5716d3f9
Allow any order of query strings in net.join_url tests.
2023-09-30 22:36:50 +02:00
Jeroen van Rijn
07cd6cd670
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.
2023-09-30 11:16:36 +02:00
Abdelrahman Farid
9ed36445b9
Add test for utf8 multibyte strings
2023-09-19 22:18:23 +03:00
Laytan Laats
287beaff35
use KiB etc. instead of KB
2023-09-12 16:49:42 +02:00
Laytan Laats
aab2fa1af9
fix test case
2023-09-01 19:53:24 +02:00
Laytan Laats
4cf176de0b
actually run the test
2023-09-01 19:51:53 +02:00
Laytan Laats
735cfcd290
Add formatting of bytes into the best unit of measurement
2023-09-01 19:17:07 +02:00
gingerBill
be6f355665
Keep -vet happy by removing using
2023-07-31 12:32:30 +01:00
gingerBill
5dba08fb3b
Keep -vet happy
2023-07-31 12:19:25 +01:00
gingerBill
8aa36072fc
Remove using where easily possible
2023-07-31 12:11:17 +01:00
Jeroen van Rijn
683ee75703
Fix #2684
2023-07-28 15:53:39 +02:00
gingerBill
8b825b23b1
Add missing comma
2023-05-29 15:18:38 +01:00
Laytan Laats
5d54b710e7
fix #2550 json encoding should use surrogate pairs per RFC7159
2023-05-22 17:22:33 +02:00
Jeroen van Rijn
5d2c1b175e
Merge pull request #2541 from laytan/add-hex-and-expand-percent-decoding
...
fix hex.encode and add tests for the package
2023-05-15 22:32:27 +02:00
Laytan Laats
2ab6de8ee4
fix hex.encode and add tests for the package
2023-05-15 20:52:07 +02:00
Yoshihiro Tanaka
59e66ffe49
Add test for net.split_url
2023-05-14 12:15:20 +09:00
Yoshihiro Tanaka
418a0132d0
Join URL queries with &
2023-05-14 12:15:20 +09:00
Jeroen van Rijn
6fe8692b98
Merge pull request #2445 from Lperlind/documentation/strings_returns
...
Document return values of strings and add allocator errors where possible
2023-04-08 10:05:39 +02:00
Yawning Angel
7fc2081543
core/crypto: Add private attributes for internals
...
These constants and internal routines are not intended for use outside
the actual implementations themselves.
2023-04-08 10:15:00 +09:00
Lucas Perlind
e0d9092df8
Document return values of strings and add allocator errors where
...
possible
2023-04-07 20:39:01 +10:00
Lucas Perlind
c59ad24856
Make tests scripts error if a test fails
...
Additionally fixes tests that were found broken because
of this.
2023-04-03 16:49:14 +10:00
Jeroen van Rijn
d337a11e83
Add tests for string case conversion
2023-03-24 11:47:45 +01:00
Jeroen van Rijn
e254581a1b
Apply #shared_nil to Network_Error
2023-03-04 10:39:20 +01:00
Jeroen van Rijn
5c05038af0
Finish cleaning up core_net.
2023-03-03 17:26:44 +01:00
Colin Davidson
28f7f57247
manually start merging core_net
2023-03-01 07:58:30 -08:00
gingerBill
c8f05b7c0c
Merge pull request #2269 from Skytrias/luapattern
...
Add lua pattern matching to core:text with tests
2022-12-22 11:08:10 +00:00
skytrias
e5d0417a6c
folder name changed
2022-12-21 21:36:50 +01:00
Lucas Perlind
f029b4beb1
Add more utility procedures to small array
2022-12-21 13:00:33 +11:00
skytrias
1bea0f3772
fix styling issues and use switches in cases its necessary, add comments to helpers
2022-12-20 15:48:10 +01:00
skytrias
ff7f139fd7
add iter_index and update tests to use easier matcher setup
2022-12-20 12:59:32 +01:00