|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: Vulnerabilities when editing untrusted code...by LanX (Monsignor) |
| on Aug 09, 2010 at 21:07 UTC ( #853916=note: print w/ replies, xml ) | Need Help?? |
|
Hi Reini I'm not sure what you mean... the editor should parse the code for all occurrences of BEGIN, CHECK and UNITCKECK and wrap each block with "use Safe" and "no Safe"? Regarding the described problems to parse for such blocks I have no idea how to achieve this reliably withot adding a hook to Perl's parser. Please see Intercepting compile time blocks like BEGIN {} for more detailed description of what I mean.
Cheers Rolf
In Section
Meditations
|
|
||||||||||||||||||||