sabctools 9.3.1__tar.gz → 9.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sabctools-9.3.1/sabctools.egg-info → sabctools-9.3.2}/PKG-INFO +1 -1
- {sabctools-9.3.1 → sabctools-9.3.2/sabctools.egg-info}/PKG-INFO +1 -1
- {sabctools-9.3.1 → sabctools-9.3.2}/src/sabctools.h +1 -1
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yenc.cc +5 -4
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test.py +0 -1
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_decoder.py +3 -3
- {sabctools-9.3.1 → sabctools-9.3.2}/LICENSE.md +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/MANIFEST.in +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/README.md +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/pyproject.toml +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/sabctools.egg-info/SOURCES.txt +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/sabctools.egg-info/dependency_links.txt +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/sabctools.egg-info/top_level.txt +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/setup.cfg +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/setup.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/__init__.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crc32.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crc32.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/AUTHORS +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/COPYING +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/ChangeLog +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/INSTALL +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/LICENSE +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/Makefile +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/Makefile.am +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/Makefile.in +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/Makefile.win +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/NEWS +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/README +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/aclocal.m4 +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/autogen.sh +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/base_types.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/crc32c_sse4.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/crc32c_sse4.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/crc32c_sse4_intrin.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/crc_casts.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/generic_crc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/gf_util.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_128_64_gcc_amd64_sse2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_64_64_cl_i386_mmx.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_64_64_gcc_amd64_asm.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_64_64_gcc_i386_mmx.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/platform.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/protected_crc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/rolling_crc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/std_headers.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/uint128_sse2.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/config.h.in +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/configure +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/configure.ac +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/depcomp +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/examples/interface.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/examples/interface.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/examples/usage.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/install-sh +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/missing +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/aligned_alloc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/bob_jenkins_rng.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/rdtsc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/set_hi_pri.c +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/unittest.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/unittest.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/tests/unittest_helper.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/py.typed +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/sabctools.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/sabctools.pyi +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/sparse.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/sparse.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/unlocked_ssl.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/unlocked_ssl.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/utils.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/utils.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yenc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/common.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_arm.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_arm_pmull.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_common.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_folding.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_folding_256.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/crc_riscv.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_avx.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_avx2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_avx2_base.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_common.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_neon.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_neon64.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_rvv.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_sse2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_sse_base.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_ssse3.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/decoder_vbmi2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_avx.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_avx2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_avx_base.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_common.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_neon.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_rvv.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_sse2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_sse_base.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_ssse3.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/encoder_vbmi2.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/hedley.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/platform.cc +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/src/yencode/stdint.h +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_crc32.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_encoder.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_sparse.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_unlocked_ssl.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/test_utils.py +0 -0
- {sabctools-9.3.1 → sabctools-9.3.2}/tests/testsupport.py +0 -0
|
@@ -362,10 +362,11 @@ static inline void NNTPResponse_process_yenc_header(NNTPResponse* instance, std:
|
|
|
362
362
|
instance->has_part = true;
|
|
363
363
|
instance->body = true;
|
|
364
364
|
line.remove_prefix(6);
|
|
365
|
-
extract_int(line, " begin=", instance->part_begin)
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
365
|
+
if (extract_int(line, " begin=", instance->part_begin) &&
|
|
366
|
+
extract_int(line, " end=", instance->part_end)) {
|
|
367
|
+
// Get the size and sanity check the values
|
|
368
|
+
instance->part_size = instance->part_end - instance->part_begin + 1;
|
|
369
|
+
}
|
|
369
370
|
if (instance->part_size > 0 &&
|
|
370
371
|
instance->part_size <= YENC_MAX_PART_SIZE &&
|
|
371
372
|
instance->part_end <= instance->file_size ) {
|
|
@@ -45,13 +45,13 @@ def test_bad_crc():
|
|
|
45
45
|
|
|
46
46
|
def test_bad_crc_end():
|
|
47
47
|
data_plain = read_plain_yenc_file("test_bad_crc_end.yenc")
|
|
48
|
-
|
|
48
|
+
_, _, _, _, _, crc = sabctools_yenc_wrapper(data_plain)
|
|
49
49
|
assert crc is None
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
def test_no_filename():
|
|
53
53
|
data_plain = read_plain_yenc_file("test_no_name.yenc")
|
|
54
|
-
|
|
54
|
+
_, filename, _, _, _, _ = sabctools_yenc_wrapper(data_plain)
|
|
55
55
|
assert filename is None
|
|
56
56
|
|
|
57
57
|
|
|
@@ -91,7 +91,7 @@ def test_ref_counts():
|
|
|
91
91
|
|
|
92
92
|
# Test further processing
|
|
93
93
|
data_plain = read_plain_yenc_file("test_bad_crc_end.yenc")
|
|
94
|
-
|
|
94
|
+
_, _, _, _, _, crc = sabctools_yenc_wrapper(data_plain)
|
|
95
95
|
assert crc is None
|
|
96
96
|
assert sys.getrefcount(data_plain) == expected_refcount
|
|
97
97
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sabctools-9.3.1 → sabctools-9.3.2}/src/crcutil-1.0/code/multiword_64_64_intrinsic_i386_mmx.cc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|