Giter VIP home page Giter VIP logo

Comments (9)

laurencelundblade avatar laurencelundblade commented on May 27, 2024

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.

dbeckwith01 avatar dbeckwith01 commented on May 27, 2024

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.

laurencelundblade avatar laurencelundblade commented on May 27, 2024

Next questions:
what compiler?
what is SIZE_MAX?

from qcbor.

dbeckwith01 avatar dbeckwith01 commented on May 27, 2024

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.

laurencelundblade avatar laurencelundblade commented on May 27, 2024

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.

laurencelundblade avatar laurencelundblade commented on May 27, 2024

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.

laurencelundblade avatar laurencelundblade commented on May 27, 2024

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.

dbeckwith01 avatar dbeckwith01 commented on May 27, 2024

@laurencelundblade Thanks for adding the updates. I should have time to test this today.

from qcbor.

laurencelundblade avatar laurencelundblade commented on May 27, 2024

Fixes were made that should have addressed the issue, so closing after waiting a month for confirmation.

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.