Comments (9)
Hey Darren,
I'll look at this, but it may take a few days. This certainly should be tracked down and fixed. Thanks for reporting.
This is 32-bit, right?
from qcbor.
Hi Laurence,
Thanks for getting back to me. Yes, this is a 32-bit processor with limited FLASH and RAM, 1MB and 256KB. I say a post by Jared Wolff about using it.
Any thoughts on how QCBOR compares to TinyCBOR?
from qcbor.
Next questions:
what compiler?
what is SIZE_MAX?
from qcbor.
The compiler is from part of Segger Embedded Studio https://www.segger.com/products/development-tools/embedded-studio/
SIZE_MAX is set to INT32_MAX or 2147483647L
from qcbor.
I just pushed a fix that should take care of these two:
NotWellFormedTests FAILED (returned 2079)
DecodeFailureTests FAILED (returned 9620)
Nothing wrong with the actual implementation, just an issue with the way the tests were constructed. They expected SIZE_MAX to be at least UINT32_MAX.
I don't know about this yet:
BstrWrapErrorTest FAILED (returned -3)`
The version I just pushed will report more detail on that failure that might help me figure it out. It doesn't seem to be related to SIZE_MAX. Would appreciate if you re run the tests and tell me the results.
from qcbor.
I haven't looked very hard a tinyCBOR and when I did it was a while a go. Here's a few things I've tried to do in QCBOR:
- Clear documented public interface. You don't have to look at the internal code to use QCBOR
- Handle CBOR tag correctly. A messy topic that was only recently clarified. See RFC 8949.
- Easy install without #ifdefs
- Provide common code for common things needed when decoding, particularly map decoding
from qcbor.
I've pushed another fix that may solve the problem with BstrWrapErrorTest FAILED (returned -3)
I think it's related to SIZE_MAX < UINT32_MAX.
from qcbor.
@laurencelundblade Thanks for adding the updates. I should have time to test this today.
from qcbor.
Fixes were made that should have addressed the issue, so closing after waiting a month for confirmation.
from qcbor.
Related Issues (20)
- Bugs in ieee754.c HOT 12
- Fail to decode an indefinite-length string with a zero-length first chunk. HOT 1
- BstrWrapErrorTest failing on ARM FVP AN521 (release v1.0) HOT 2
- Build error if ARM microlib is used HOT 3
- Enhancement: release QCBOR as MDK Software Pack
- How to decode null terminated string? HOT 2
- UsefulBuf.h gives warnings when used with MSVC HOT 4
- ENCRYPTO should be ENCRYPT0 HOT 1
- Need BKM to use CBOR HOT 2
- Writing an empty null buffer triggers undefined behaviour. HOT 2
- Streaming encoding on the fly HOT 4
- CMake should support installation
- How to use cmake's disable float options? HOT 4
- Warnings when building release tag version 1.2 HOT 9
- Backward compatibility is broken HOT 4
- License file/Github setting HOT 2
- QCBOR should have QCBORDecode_SetError() HOT 4
- Provide public API to determine decoder item offsets HOT 6
- QCBORDecode_EnterArrayFromMapN should return array item
- QCBOREncode_Finish() should set internal error state 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 qcbor.