Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src
Modified Files:
entropy_core.c
Log Message:
* Error checking for invalid/corrupt plugins
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -3 -r1.84 -r1.85
--- entropy_core.c 20 Apr 2006 06:39:51 -0000 1.84
+++ entropy_core.c 21 May 2006 01:52:31 -0000 1.85
@@ -764,13 +764,16 @@
dl_ref = dlopen(filename, RTLD_LAZY);
if (!dl_ref) {
+ printf("Could not open plugin object %s - Corrupt file?
abort\n", filename);
return NULL; /*Could not open plugin*/
}
entropy_plugin_init = dlsym(dl_ref, ENTROPY_PLUGIN_INIT_FUNCTION);
- if (!entropy_plugin_init)
+ if (!entropy_plugin_init) {
+ printf("Registered plugin did not contain function '%s',
abort\n",ENTROPY_PLUGIN_INIT_FUNCTION );
return NULL;
+ }
plugin = (*entropy_plugin_init)(entropy_core_get_core());
plugin->dl_ref = dl_ref;
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs