Giter VIP home page Giter VIP logo

Comments (7)

rustyrussell avatar rustyrussell commented on August 22, 2024

from ccan.

russdill avatar russdill commented on August 22, 2024

Probably just "foo", anything is probably fine though so long as it's documented as not being supported but still avoids the outside of buffer access if it gets one.

from ccan.

gitgofred avatar gitgofred commented on August 22, 2024

greetings and salutations!
51 len = strlen(base);
// how about
if(0 == len)
goto out;
52 ret = tal_dup_arr(ctx, char, base, len, 1 + strlen(a) + 1);
// and this to negate any side effects
53 if (0 == len | !ret)
54 goto out;
55 if (ret[len-1] != PATH_SEP)
56 ret[len++] = PATH_SEP;

from ccan.

gitgofred avatar gitgofred commented on August 22, 2024

ln 53 chg not req

from ccan.

gitgofred avatar gitgofred commented on August 22, 2024

perhaps a sort of unlikely_path to eye any off by one before ret = tal_dup_arr(...)?

from ccan.

gitgofred avatar gitgofred commented on August 22, 2024

53 comment logic and if (0 -- len) not useful on second parse.

from ccan.

gitgofred avatar gitgofred commented on August 22, 2024

from ccan.

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.