Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Vulnerabilities when editing untrusted code...

by LanX (Canon)
on Aug 09, 2010 at 21:07 UTC ( #853916=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Vulnerabilities when editing untrusted code...
in thread Vulnerabilities when editing untrusted code... (Komodo)

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


Comment on Re^3: Vulnerabilities when editing untrusted code...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853916]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-12-21 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (102 votes), past polls