Dynamically loading libraries in an application can lead to vulnerabilities if not secured properly. In this blog post we talk about loading a library using LoadLibraryEx() API and make use of options to make it safe.
Know the defaults:
The library file name passed to LoadLibrary() / LoadLibraryEx() call need not contain an extension.