init: handle invalid parameters on Windows
I was experiencing a crash on Windows when trying to use output workers. See #3537 I am sure that the function will have to be moved.
I found out that the crash can be prevented when _set_invalid_parameter_handler and _set_thread_local_invalid_parameter_handler are used to set the invalid parameter handler. They must be called before calling write.
Enter [N/A] in the box, if an item is not applicable to your change.
Testing Before we can approve your change; please submit the following in a comment:
- [N/A] Example configuration file for the change
- [N/A] Debug log output from testing the change
- [N/A] Attached Valgrind output that shows no leaks or memory corruption was found
Documentation
- [N/A] Documentation required for this feature
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
@MPeli there is a DCO error in the commit, would you please sign off your commit ? (git commit -s ...)
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.