Comments (2)
Hi, it appears to me that no buffer was allocated to hold the decompressed output:
https://github.com/mc-hamster/Unishox2-Test/blob/2a8a3e94e26bee1a378c22ad0d4c2d638dc4b414/src/main.cpp#L23
Also you seem to have adopted the port for Particle Photon.
There were bug fixes and improvements after that so it would be better to use the main source. Not sure if you were facing any issues including the .c version.
from unishox2.
Sorry for the slow reply. Been heads down on another project.
The problem with the .c version was I had brought it in from a cpp project and didn't wrap the import in an extern.
I'll create a few code samples and will contribute it back to you. Thanks mate!
Closing this for now.
from unishox2.
Related Issues (20)
- Unit Tests and CI for the project HOT 1
- term code does not work for preset 1 HOT 6
- out of bound and infinite loop when decompressing invalid count HOT 1
- Compress on JS and decompress on Arduino HOT 3
- typo in document: The first set consists of [27] codes HOT 1
- Typo in usx_sets HOT 1
- [JOSS]: Automated tests HOT 2
- Benchmark against Snappy HOT 5
- Decompress length is greater than original length HOT 7
- Questions about e.g. handling arbitrary bytestrings; and some feedback HOT 3
- Simple question HOT 4
- Errors in linting with tool-cppcheck HOT 2
- Documentation HOT 3
- any golang binding for this? HOT 2
- can u do one just for email? e.g. -.@ HOT 9
- great work by the way, what's the difference between w-olen and without? HOT 2
- Crash in decompression, strlen(NULL) HOT 18
- Reimplementation Licensing HOT 1
- benchmarks available? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unishox2.