Code Monkey home page Code Monkey logo

Comments (8)

laurencelundblade avatar laurencelundblade commented on June 6, 2024

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.

mcr avatar mcr commented on June 6, 2024

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.

mcr avatar mcr commented on June 6, 2024

I changed my code to just put a 1 into the target, rather than an empty map: 0xa1 0x01 0x01
SAME THING.

from qcbor.

mcr avatar mcr commented on June 6, 2024

#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.

mcr avatar mcr commented on June 6, 2024

Well, I screwed up my unit test case. Standby... :-)

from qcbor.

mcr avatar mcr commented on June 6, 2024

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.

mcr avatar mcr commented on June 6, 2024

My test case was inaccurate: I simplified too much. But my underlying issue remains in my code.

from qcbor.

mcr avatar mcr commented on June 6, 2024

Further: -DCONFIG_ variables not set consistently across users of QCBOR includes.

from qcbor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.