Giter Club home page Giter Club logo

Comments (4)

linuxwolf avatar linuxwolf commented on August 28, 2024

@moschlar Re-reviewing the code with #38 in mind, the possible problem points I see are:

  • Applying a 32-bit value to a byte buffer (including some pointer arithmetic)
    static uint8_t *_apply_uint32(const uint32_t value, uint8_t *buffer)
  • More pointer arithmetic (via function calls)
    uint8_t *ptr = buffer;
  • More direct pointer arithmetic while appending successive digests
    uint8_t *ptr = buffer + offset;

As with last time, we don't have a big-endian environment to troubleshoot and test on, so any assistance with or access to such an environment would be valuable.

from cjose.

moschlar avatar moschlar commented on August 28, 2024
  • Applying a 32-bit value to a byte buffer (including some pointer arithmetic)

Ah yes, it seems to be called with value of anything but uint32_t:

I'll see if I can somehow access such an environment to test it (cc @christmart).

Could you maybe think of a simple way to fix these three occurences?

from cjose.

linuxwolf avatar linuxwolf commented on August 28, 2024

(finally returning from holiday ... )

Thanks @moschlar.

The protocol expects a uint32_t, but just about all the calls around it expect a size_t. I'll change the int to uint32_t (it is just a counter that can't be negative). For the others I'll make an explicit cast.

from cjose.

moschlar avatar moschlar commented on August 28, 2024

The Debian architecture builds are now working, too! :-)

from cjose.

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.