Giter VIP home page Giter VIP logo

Comments (8)

eduardsui avatar eduardsui commented on August 11, 2024

Thanks, I'll take a look. memcpy sounds ok, but it guess it will be slow (compared with a simple attribution). I'll rewrite those lines, thanks for reporting.

from tlse.

sjaeckel avatar sjaeckel commented on August 11, 2024

Not sure though if you want to use our solution but we've resolved this in ltc like this

from tlse.

Alcaro avatar Alcaro commented on August 11, 2024

No, it won't be any slower. memcpy with short, constant sizes will be inlined by the compiler, yielding the same machine code as cast/assign.

https://godbolt.org/g/zGEGLb

from tlse.

Sfinx avatar Sfinx commented on August 11, 2024

Most lines can be simply rewritten as:

*(int *)&trail[4] => *(int *)(trail + 4)

from tlse.

Sfinx avatar Sfinx commented on August 11, 2024

A kind of cosmetic patch:

alias.txt

from tlse.

eduardsui avatar eduardsui commented on August 11, 2024

Tried, patch failed:

Patching file tlse.c using Plan A...
Hunk #1 succeeded at 809 (offset 9 lines).
Hunk #2 succeeded at 3760 (offset 408 lines).
Hunk #3 FAILED at 3393.
Hunk #4 succeeded at 6681 (offset 983 lines).
Hunk #5 FAILED at 6505.
Hunk #6 FAILED at 6520.
Hunk #7 FAILED at 6562.
Hunk #8 FAILED at 6593.
Hunk #9 succeeded at 7861 (offset 1186 lines).
5 out of 9 hunks FAILED -- saving rejects to file tlse.c.rej
done

from tlse.

Sfinx avatar Sfinx commented on August 11, 2024

The patch was made against f162e06. I do not use your master for now as having some local mods (tls_peek, another tls_pending, etc.), not sure if you are interested in them

from tlse.

eduardsui avatar eduardsui commented on August 11, 2024

Fixed (based on your patch). Thanks!

from tlse.

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.