tylerdurden2010 / sulley

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

s_byte with full_range="True" does not include 255 (0xff) #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a block with an s_byte("\x00", full_range="True") in it
2. I use the session_file() class to output to a file
3.

What is the expected output? What do you see instead?
I expected 256 packets to be created (0-255).  I got 0-254.

What version of the product are you using? On what operating system?
Latest, I think.  Windows.

Please provide any additional information below.
I think the xrange(start, stop) used in primitives.py is the problem.  It
does not include the stop value.

Original issue reported on code.google.com by MikeLock...@gmail.com on 12 Apr 2010 at 6:24