Ejemplo n.º 1
0
def loopFuzzingAndReduction(options, buildInfo, collector, i):
    tempDir = tempfile.mkdtemp("loop" + str(i))
    if options.testType == 'js':
        loopjsfunfuzz.many_timed_runs(options.targetTime, tempDir,
                                      buildInfo.mtrArgs, collector)
    else:
        loopdomfuzz.many_timed_runs(options.targetTime, tempDir,
                                    [buildInfo.buildDir], collector)
Ejemplo n.º 2
0
def fuzzUntilBug(options, buildInfo, i):
    # not really "oldjobname", but this is how i get newjobname to be what i want below
    # avoid putting underscores in this part, because those get split on
    oldjobname = uuid.uuid1(clock_seq=i).hex
    job = options.tempDir + localSep + oldjobname + localSep
    os.mkdir(job)

    if options.testType == 'js':
        (lithResult, lithDetails) = loopjsfunfuzz.many_timed_runs(options.targetTime, job, buildInfo.mtrArgs)
    else:
        # FIXME: support Valgrind
        (lithResult, lithDetails) = loopdomfuzz.many_timed_runs(options.targetTime, job, [buildInfo.buildDir])

    if lithResult == lithOps.HAPPY:
        print "Happy happy! No bugs found!"
    else:
        writeTinyFile(job + "build-source.txt", buildInfo.buildSrc)
        uploadJob(options, lithResult, lithDetails, job, oldjobname)
Ejemplo n.º 3
0
def fuzzUntilBug(options, buildInfo, i):
    # not really "oldjobname", but this is how i get newjobname to be what i want below
    # avoid putting underscores in this part, because those get split on
    oldjobname = uuid.uuid1(clock_seq=i).hex
    job = options.tempDir + localSep + oldjobname + localSep
    os.mkdir(job)

    if options.testType == 'js':
        (lithResult,
         lithDetails) = loopjsfunfuzz.many_timed_runs(options.targetTime, job,
                                                      buildInfo.mtrArgs)
    else:
        # FIXME: support Valgrind
        (lithResult,
         lithDetails) = loopdomfuzz.many_timed_runs(options.targetTime, job,
                                                    [buildInfo.buildDir])

    if lithResult == lithOps.HAPPY:
        print "Happy happy! No bugs found!"
    else:
        writeTinyFile(job + "build-source.txt", buildInfo.buildSrc)
        uploadJob(options, lithResult, lithDetails, job, oldjobname)
Ejemplo n.º 4
0
def loopFuzzingAndReduction(options, buildInfo, collector, i):
    tempDir = tempfile.mkdtemp("loop" + str(i))
    if options.testType == 'js':
        loopjsfunfuzz.many_timed_runs(options.targetTime, tempDir, buildInfo.mtrArgs, collector)
    else:
        loopdomfuzz.many_timed_runs(options.targetTime, tempDir, [buildInfo.buildDir], collector)
Ejemplo n.º 5
0
def loopFuzzingAndReduction(options, buildInfo, collector, i):
    tempDir = tempfile.mkdtemp("loop" + str(i))
    if options.testType == 'js':
        loopjsfunfuzz.many_timed_runs(options.targetTime, tempDir, buildInfo.mtrArgs, collector)
    else:
        raise Exception('Only js engine fuzzing is supported')