Old-style/global tables leak between programs and dynamically loaded modules. For instance, if both the program and module use option handling and get-config/put-config, options set in the main programs are seen in the module and vice versa. Also, dynamic rules have unexpected behaviour if rules with the same name are defined in both program and module.

Dynamically loadable modules should have their own SSL_table_table (which they might in fact have in some cases, depending on linking). The library should provide a function to set the value of SSL_table_table, so that it is easy to switch the SSL_table_table before and after a module call (stratego-dl gets around this at the moment by temporarily storing the program’s table-table in a list during a module call).

Submitted on 25 July 2005 at 13:55

On 28 January 2013 at 14:46 Eelco Visser removed tag 0.18M1

On 28 January 2013 at 14:46 Eelco Visser tagged interesting

Log in to post comments