Skip to content
Snippets Groups Projects
  • Tobias S. Josefowitz's avatar
    0d83893d
    System: ident pointer may be accessed after openlog() returned · 0d83893d
    Tobias S. Josefowitz authored
    The syslog functions may keep accessing the ident supplied to openlog()
    by pointer with subsequent calls to syslog(). In order to not have
    syslog() access random or free memory, we now keep a reference to ident
    until either:
    
    * A subsequent call to openlog()
    * A call to closelog()
    * System module unload/exit
    
    Thanks to Stanislaw Klekot <pike@jarowit.net> for the report.
    0d83893d
    History
    System: ident pointer may be accessed after openlog() returned
    Tobias S. Josefowitz authored
    The syslog functions may keep accessing the ident supplied to openlog()
    by pointer with subsequent calls to syslog(). In order to not have
    syslog() access random or free memory, we now keep a reference to ident
    until either:
    
    * A subsequent call to openlog()
    * A call to closelog()
    * System module unload/exit
    
    Thanks to Stanislaw Klekot <pike@jarowit.net> for the report.