sh1nu11bi / sulley

Automatically exported from code.google.com/p/sulley
GNU General Public License v2.0
0 stars 0 forks source link

dwords full range #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using python 2.4.

From Primitives.py

    assert(type(self.max_num) is int or type(self.max_num) is long)

        # build the fuzz library.
        if self.full_range:
            # add all possible values.
            for i in xrange(0, self.max_num): #Bug
                self.fuzz_library.append(i)

    for i in xrange(0, self.max_num): #Bug
    OverflowError: long int too large to convert to int

Trigger using:
 s_dword(0x1, full_range="true")

Now another problem is, I change the line to be 
  for i in xrange(0, sys.maxint):

I get another error:
    self.fuzz_library.append(i)
    MemoryError

So is this even possible ?

Thanks
-d

Original issue reported on code.google.com by dan...@gmail.com on 14 Jan 2010 at 1:09