Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for a lot of crashes caused by the lack of pointer validation. #820

Open
holonowp opened this issue Sep 26, 2022 · 0 comments
Open

Comments

@holonowp
Copy link

Hello everyone,
With using ELPP I have experienced crashes caused by the lack of pointer validation. They occur always when you try to use the logger at:

  1. The constructor of a static object (as the trial to log occurs before initializing the storage),
  2. The destructor of a static object (logging after the storage has been destroyed).
    and sometimes in other circumstances as well (multiple threads, etc).
    The reason is unfortunately a wide use of the expressions like ELPP->registered_loggers()-> and similar ones, without checking the pointers first.
    I have fixed this problem in my local copy, how can I fix the repository, so everyone could benefit ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant