Comments (8)
Hi Michael,
I'll look at this in the next day or two. It is likely a bug as I don't recall testing this and there are a lot of corner cases related to empty maps and arrays.
I don't have any file I/O in all of QCBOR for a reason. Some embedded systems don't have files. I'll debug this by making a test case and setting a break point at it (in Xcode).
Thanks for reporting.
from qcbor.
There is no makefile in the tests directory, and no "make check" in the main makefile.
It would be great if it had that, then we could run the whole thing under travis-ci.
from qcbor.
I changed my code to just put a 1 into the target, rather than an empty map: 0xa1 0x01 0x01
SAME THING.
from qcbor.
#81 shows this problem against the top of your tree.
I'm perplexed. I am decoding multiple items without a problem.
I have also tried adding a second entry to the map.
from qcbor.
Well, I screwed up my unit test case. Standby... :-)
from qcbor.
okay, fixed: I compared to TYPE_ARRAY, and that was wrong.
But, a printf():
printf("type: %d nest: %d labeltype: %d label: %d\n",
Item.uDataType,
Item.uNestingLevel,
Item.uLabelType,
Item.label.int64);
```
shows me:
type: 5 nest: 0 labeltype: 0 label: 0
the labeltype being 0 is weird.
from qcbor.
My test case was inaccurate: I simplified too much. But my underlying issue remains in my code.
from qcbor.
Further: -DCONFIG_ variables not set consistently across users of QCBOR includes.
from qcbor.
Related Issues (20)
- There doesn't appear to be a way to determine how much space is needed for encoding HOT 4
- OSS-Fuzz integration HOT 2
- Uninitialized data warnings HOT 3
- Preferred Serialization support HOT 1
- 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
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.