lua-users home
lua-l archive

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


It was thus said that the Great Fontana Nicola once stated:
> Il giorno mar, 23/03/2021 alle 00.24 +0000, Thijs Schreijer ha scritto:
> > 
> > If there are any issues, please let me know.
> 
> I've been pointed out that passing a "perishable" string to `openlog`
> could led to memory corruption because on some systems that pointer is
> cached. I solved by applying the following patch:
> 
>     https://github.com/ntd/luasyslog/commit/95bdbd389e207931a9c75a8c4d800129b88c690

  I solved that issue by saving the ident string in the Lua registry, and
removing it when calling the wrapper for closelog().

  -spc