Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work for 64bit buffer #13

Closed
jp341 opened this issue Mar 15, 2017 · 1 comment
Closed

Does not work for 64bit buffer #13

jp341 opened this issue Mar 15, 2017 · 1 comment

Comments

@jp341
Copy link

jp341 commented Mar 15, 2017

FAQ claims blosc2 is meant to support 64bit buffer, but I note that blosc_compress returns an int type.

@FrancescAlted
Copy link
Member

Yes, Blosc2 will continue using Blosc1 under the hood, and the idea is to keep compatibility with the API of Blosc1 as much as possible (untouched, basically). For getting 64-bit buffers with Blosc2 you have to use the super-chunk API. See an example on how to use the Blosc2 API.

Mind you that Blosc2 format is not written in stone yet, so use it at your own risk.

nmoinvaz added a commit to nmoinvaz/c-blosc2 that referenced this issue Nov 22, 2020
Direct leak of 26720 byte(s) in 1 object(s) allocated from:
    #0 0x52e56d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
    Blosc#1 0x78622a in ZSTD_malloc /src/c-blosc2/internal-complibs/zstd-1.4.5/common/zstd_common.c:60:12
    Blosc#2 0xa48397 in ZSTD_createDDict_advanced /src/c-blosc2/internal-complibs/zstd-1.4.5/decompress/zstd_ddict.c:152:49
    Blosc#3 0xa48eaf in ZSTD_createDDict /src/c-blosc2/internal-complibs/zstd-1.4.5/decompress/zstd_ddict.c:173:12
    Blosc#4 0x5b7684 in initialize_context_decompression /src/c-blosc2/blosc/blosc2.c:1615:27
    Blosc#5 0x5b7684 in blosc_run_decompression_with_context /src/c-blosc2/blosc/blosc2.c:2120:11
    Blosc#6 0x5b7f1b in blosc2_decompress /src/c-blosc2/blosc/blosc2.c:2211:12
    Blosc#7 0x5613c3 in LLVMFuzzerTestOneInput /src/c-blosc2/tests/fuzz/fuzz_decompress_chunk.c:34:5
    Blosc#8 0x465e41 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15
    Blosc#9 0x46534a in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool, bool*) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:505:3
    Blosc#10 0x467057 in fuzzer::Fuzzer::MutateAndTestOne() /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:745:19
    Blosc#11 0x467c05 in fuzzer::Fuzzer::Loop(std::__Fuzzer::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:883:5
    Blosc#12 0x455d7b in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:906:6
    Blosc#13 0x47fe22 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
    Blosc#14 0x7f708964e83f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants