2,418 questions
0
votes
0
answers
36
views
Bluebeam .BTX toolchest syntax
Anyone know a bit on .btx (Bluebeam toolchest) file syntax ?
I noticed it's XML based and the values are zlib encoded.
So i'd like to understand how the syntax is built
2
votes
1
answer
100
views
How to link with static version of zlib in CMake?
I built my version of zlib (and by default it builds both static and dynamic) but seemingly it can't find the static one because it's being "zs.lib" and not in the preferred list so it can't ...
0
votes
1
answer
67
views
CMake : Resolving Internal 3rd-Party Libs Within Project
I'm trying to use libzip (https://libzip.org/) within my project, which itself depends on zlib (https://www.zlib.net/). This is on a Windows system, so I can't rely on system packages.
I can add zlib ...
-3
votes
1
answer
55
views
How to decompress zlib format package in dissector?
I wrote a dissector. I need to decompress zlib format package when analyzing data.
such as:
content_bytes = zlib.decompress(content_bytes)
I have tried:
local zlib = require("zlib") -- got ...
3
votes
1
answer
169
views
Zlib deflate uncompress data error not able to inflate
Plese guide me, what I am doing wrong. I am not able to coming up with working solution.
I am trying to inflate PDF - deflate stream with Zlib. The below code written by me.
int main(){
char* ...
3
votes
1
answer
180
views
Zlib crc function is inconsistent when reading files in larger blocks
I'm using the crc function in zlib to calculate the crc of a large file. I'm mapping the file in 1GB chunks to pass to the crc function, and I noticed that if I change the size of the chunks to 5GB ...
0
votes
0
answers
100
views
zlib dependency error on Fedora installing yesod-bin with stack
I've been trying to install the yesod framework following the suggested steps:
stack new my-project yesodweb/sqlite
cd my-project
stack install yesod-bin --install-ghc
However I get the compilation ...
2
votes
1
answer
176
views
Is there a portable, simple, way to compress/decompress gzip in C?
I am relatively new to C programming. I am trying to write a parser for the Minecraft NBT data format (specification by Notch on the Wayback Machine).
However, I am running into a problem.
An NBT file ...
0
votes
0
answers
131
views
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.11, library: 1.3.1)
I've been facing an issue recently when using custom matplotlib stylesheets on my Linux PC. Say I have a custom stylesheet named madeup.mplstyle. The style has run perfectly on a Windows kernel and ...
-1
votes
1
answer
848
views
Issue with zlib Vulnerability in CI/CD Pipeline (GitLab)
Problem
I’m encountering an issue in my GitLab CI/CD pipeline related to a critical vulnerability in the zlib1g library (CVE-2023-45853). The vulnerability was flagged during the container security ...
2
votes
1
answer
326
views
How can I use Discord.js Client with Next.js v15 Server Actions?
I am currently just trying to create a server action in my next.js app to use a Discord Bot of my own making to get member profile pictures. I have the following server action coded in my application
'...
1
vote
0
answers
168
views
Undefined symbols for architecture arm64 while building cpp thrift lib for iOS
I am trying to build a few lib for iOS but I am getting error for thrift lib version 0.21.0
below is the config that I am using to build it
ExternalProject_Add(thrift
SOURCE_DIR ${...
1
vote
1
answer
36
views
Why are the colors mixed up in this screenshot taken using Robot.js?
I'm using Robot.js to take screenshots (I don't really want to install any other heavy packages over 1 mb, but I'm already using Robot.js and no, Jimp isn't what I'm looking for). Since the ...
1
vote
2
answers
125
views
How to concatenate GZIP streams in python?
I am attempting to combine multiple gzip streams into a single stream, my understanding is this should be possible but my implementation is flawed.
Based on what I have read, my expectation was that I ...
0
votes
0
answers
973
views
Argument of type 'Buffer' is not assignable to parameter of type 'InputType'
My project has been using zlib for its decompression methods for a long time. Suddenly while trying to update packages its throwing a TypeError in the following code:
Argument of type 'Buffer' is not ...
-1
votes
2
answers
3k
views
Install zlib library on Windows for MSVC
I'd like to compile (using MSVC 2022) some third party project (fteqw) that depends on zlib library. First to generate a solution to open in MSVC i'm using the cmake from the Visual Studio 2022 ...
1
vote
1
answer
101
views
mpicc: command not found while installing hdf5 library
Trying to install hdf5-1.14.5 with zlib-1.3.1 but I cant configure it.
I have CC=mpicc and FC=mpif90 with gcc wrapper. Both the compilers can compile a run simple mpi programs.
mpicc -version
gcc (...
1
vote
1
answer
135
views
How to use python to create ORC file compressed with ZLIB compression level 9?
I want to create an ORC file compressed with ZLIB compression level 9.
Thing is, when using pyarrow.orc, I can only choose between "Speed" and "Compression" mode,
and can't control ...
1
vote
1
answer
55
views
What is the meaning of the 3rd byte generated using zlib deflate?
What is the meaning of the 3rd byte generated using zlib deflate? (NO_FLUSH and Z_DEFAULT_COMPRESSION are being used in case that makes a difference).
The reason I'm asking is that I'm trying to ...
0
votes
0
answers
31
views
How to tell CMake to install a library first and then use it? [duplicate]
I am quite new to CMake and still struggling with the fundamentals. Currently I try to tell CMake to first download ZLib from GitHub and then use it for my BuildTest app. (By the way, I use Qt Creator ...
0
votes
1
answer
66
views
How to Match Compression Format for Specific Compressed Data?
I'm trying to decompress and recompress a specific piece of compressed data in Python to reproduce the original compressed output. However, I can't achieve a match with zlib, and I'm unsure what ...
0
votes
1
answer
179
views
Writing a png image from scratch in C++ after compression via zlib
My goal is to write a png image from a starting bitmap image. I know the existence of many libraries, but I need to write it from scratch.
The first function I have implemented is "...
0
votes
1
answer
67
views
Converting zlib related python code to java
I am trying to convert the below python code into java
def _convert_base10encoded_to_decompressed_array(base10encodedstring) -> None:
bytes_array = base10encodedstring.to_bytes(5000, 'big')...
1
vote
0
answers
77
views
How do I use MZ_ZIP64_AUTO in Minizip (on Zlib)?
I am using minizip version 3.0.0.8 and zlib 1.2.
I have the functionality to export zip files in quite a bit of software. It saves all files in the archive with Zip64 characteristics. The exported ...
0
votes
1
answer
117
views
Decompress zlib/deflate with a shared dictionary in Javascript
Zlib/deflate doesn't exactly support shared dictionaries but you can "pre-load" the output stream with up to 32kB of data. For example in Python:
>>> from zlib import compressobj
&...
0
votes
1
answer
53
views
how to inflate zlib sub-chunk not having previous chunks but having z_stream which deflated it?
I deflate data and send output chunks into server. In case of network error I need to start fresh zlib stream (the server expects this), but because I still hold last deflated chunk (without origin ...
0
votes
1
answer
59
views
Invalid BTYPE value in png parsing (zlib/deflate)
I'm trying to parse a png file but I seem to be missing something.
My test image was the following: https://www.w3.org/Graphics/PNG/alphatest.png
When parsing the file my BTYPE value (https://www.ietf....
0
votes
1
answer
45
views
node https & zlib package: can't parse gzip'ed response from stackoverflow.com
gunzip ing the response doesn't work (I definitely get a gzip response), the headers aren't right, I really don't get why. Here's the demo code below:
const https = require('https')
const zlib = ...
0
votes
1
answer
100
views
Zip File Structure Parsing Inconsistency, Deflating Zip File Via Binary File Manipulation
I am trying to parse a zip file using python, after locating the End Of Central Directory signature b'\x50\x4b\x05\x06' These are the extraction instructions I implemented using the zip file. It seems ...
0
votes
1
answer
87
views
How to correctly set versionMadeBy field for zipOpenNewFileInZip4 in minizip (Zlib library)
I need my application to properly zip files in Windows, UNIX, Mac etc. Earlier I was on Zlib 1.2.3 and now migrating to 1.3.1. I have API calls to zipOpenNewFileInZip4 which has a new field ...
2
votes
1
answer
127
views
Issue with a hand-made PNG file
I have been trying for some time do create a PNG file "from scratch", that is to say to manipulate the data byte per byte in order to create a viable file.
During this quest of mine I have ...
0
votes
2
answers
97
views
Cannot decompress zlib compressed file using NodeJS
I have a 22 byte payload that is compressed with ZLIB. I can decompress the file just fine in Java to the original 14 byte String using this snippet:
public static void main(String[] args) throws ...
1
vote
1
answer
76
views
libz does not extract entire gzip file
This (1.4M) can be decompressed with gzip no problem with say
gzip --stdout --decompress ./archiveteam_blip_20150813160102.cdx.gz
It decompresses to 61400 lines of text.
However, with this code based ...
0
votes
1
answer
368
views
ZLIB: How Should I Inflate Deflated Data of Unknown Length
I am inflating some legacy files with zlib. Unfortunately, the files are comprised of 3 parts:
Part 1: Uncompressed Data followed by
Part 2: zlib deflated data, which begins with 0x789C followed by
...
0
votes
1
answer
103
views
Minizip not working to compress file that has size > 4 GB
My program uses minizip(zlib- version 1.2.3) to compress an xml file. When the xml file size is greater than 4 GB(in fact
the max value of int 32 - 4294967295) then I find that when I try to extract ...
2
votes
0
answers
152
views
Node zlib: throwing incorrect header check while inflating or unzipping
I have a varbinary type column jsonBin in db. I want to store json (string) which is compressed using zlib.
zlib.gzipSync(data) or zlib.deflateSync(data) returns buffer object.
If I use base64 ...
0
votes
1
answer
1k
views
zlib does not link properly when building OpenMPI 5.0.1 leading to runtime warning
I installed OpenMPI 5.0.1 on fresh installation of Ubuntu 24.04. All dependencies were installed via apt and should be in the standard locations. However, mpiexec gives the following runtime warning
--...
6
votes
0
answers
436
views
Python venv creation fails due to ensurepip and zlib issues
I'm unable to create a Python virtual environment via venv in which I can install dependencies via pip. These issues occur on a clean install of Ubuntu 24.04 LTS.
I specifically want to use Python's ...
0
votes
0
answers
118
views
trying to build podofo 0.9.8 on mingw64, missing zlib
I can't install podofo version 0.9.8 (clone from git https://aur.archlinux.org/podofo-0.9.git), because I get this error of ZLIB
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs....
1
vote
2
answers
207
views
Delphi Zlib: how to compress with windowbits -15 (raw deflate)
I need to compress data in a "raw deflate" manner, with Windowbits set to -15. Files containing compressed data have been compressed that way by an external party, which gets decompressed ...
0
votes
1
answer
159
views
Java client + Apache HTTP server + GZIP Compression/Decompression
I want to compress HTTP traffic via gzip content-encoding http header, both on requests and responses. I'm able to receive compressed data from the HTTP server and to decompress it, but if I try to ...
0
votes
1
answer
156
views
What is avail_out minimum possible value for inflate in zlib z_stream?
I checked the zlib example at https://zlib.net/zpipe.c and I've seen that chunk size of 16384 bytes is used. But what is minimal possible chunk size for output inflate data could be used? Can I use ...
-2
votes
2
answers
180
views
Where is z_uncompress and z_compress defined in zlib?
I am building a C++ project that uses zlib, and I get this error:
undefined symbol: z_uncompress
undefined symbol: z_compress
I investigated it further, and I've found this reference in zconf
# ...
0
votes
0
answers
112
views
Build static zlib for Android
I'm using the following script. It should produce static lib. However, it produces both libz.a and libz.so.
(I have -DBUILD_SHARED_LIBS=OFF specified.)
How can I set it to produce static libs only?
#!/...
0
votes
1
answer
96
views
zlib inflate() partly hangs while uncompressing buffer
I use zlib 1.3.1 on MicroChip/XC32. It's imported through included Harmony and it translates perfect. My goal is to receive data via a serial connection through various ways. This already works with ...
0
votes
0
answers
217
views
zlib inflate failing with errors like invalid distance too far back/ invalid block type/ invalid stored block lengths
Background: I am trying to deflate an in-memory buffer into a file and inflate it later for debugging.
In this case when the logs are flowing at a faster rate (about every millisecond) I see failures ...
0
votes
0
answers
368
views
ModuleNotFoundError: No package named 'zlib'
I am trying to run a Python3.11.3 program on my chromebook. I was able to install Python3.11.3 using a tar.gz file and unpacking it, then running the commands:
./configure --prefix=/user/local/Python-...
0
votes
1
answer
382
views
C++ how to unzip file
I found this code to unzip files:
#include <zlib.h>
#define CHUNK_SIZE 16384 // 16 KB
bool unzipFile(const char* zipFileName, const char* extractFileName) {
// Open the input file (...
0
votes
1
answer
442
views
How can I decompress gzipped http bodies in a nodejs application?
First off, I tried all that I could find anywhere on the web, including the answers to related questions on SO, but could not make anything work. That's why I'm asking a new question.
I use the Lua ...
4
votes
0
answers
714
views
Missing System.IO.Compression.Native.dll in .NET 8 leads to error when using GZipStream
I have recently upgraded a .NET 6 application (ASP.NET Core MVC) to .NET 8. Testing the upgrade worked perfectly fine on my development machine. But when testing this on an external machine (which has ...