tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dirname(3) used on its own results?



    Date:        Wed, 26 Sep 2018 16:42:27 +0000 (UTC)
    From:        christos%astron.com@localhost (Christos Zoulas)
    Message-ID:  <pogctj$rd$1%blaine.gmane.org@localhost>

  | Well, it will return the wrong results... so might as well change the
  | memcpy to memmove? No?

The results would not have been wrong - this was purely a SSP detected
gotcha - all it was doing was memcpy(p, p, strlen(p)-N) which always works...

I have just made a slightly different hack which should avoid SSP issues
(I think) and allow the dirname() of a previous dirname() output (though that
should still be changed in the source).

kre



Home | Main Index | Thread Index | Old Index