Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Fuzz testing with perl

by ELISHEVA (Prior)
on Jan 27, 2011 at 12:08 UTC ( [id://884541]=note: print w/replies, xml ) Need Help??


in reply to Fuzz testing with perl

I'm not sure what you mean by a fuzz testing module. There are certainly plenty of random number/input generator modules on CPAN.

However, I think a general purpose fuzz testing framework would be hard to develop for Perl applications. In the automated fuzz testing system I developed a few years back for a project (Java), I used reflection to discover parameters to constructors and methods and then generated random input to create objects or to pass to methods.

Perl doesn't have a mechanism for retrieving the number or type of parameters of methods. The closest you come are prototypes, but they aren't widely used and they don't really specify parameter types so much as the context that should be used to interpret each parameter. You can get all of the subroutine symbols for a package, but you can't even tell which ones expect a class/object as a first parameter and which are normal functions.

I suppose you could create such a system by slapping a layer of metadata and reflection on top of Perl (Moose anyone?), but then you aren't just programming Perl, you are effectively creating a new language.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found