aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/dyn_load/dyn_load.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dyn_load/dyn_load.h')
-rw-r--r--src/utils/dyn_load/dyn_load.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/dyn_load/dyn_load.h b/src/utils/dyn_load/dyn_load.h
index 56277d3e4..c8fb31cf0 100644
--- a/src/utils/dyn_load/dyn_load.h
+++ b/src/utils/dyn_load/dyn_load.h
@@ -18,6 +18,11 @@ class Dynamically_Loaded_Library
/**
* Load a DLL (or fail with an exception)
* @param lib_name name or path to a library
+ *
+ * If you don't use a full path, the search order will be defined
+ * by whatever the system linker does by default. Always using fully
+ * qualified pathnames can help prevent code injection attacks (eg
+ * via manipulation of LD_LIBRARY_PATH on Linux)
*/
Dynamically_Loaded_Library(const std::string& lib_name);