-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
What steps will reproduce the problem?
1. Run test.py on an STFD that I'm not going to supply.
2.
3.
What is the expected output? What do you see instead?
Traceback (most recent call last):
File "test.py", line 33, in <module>
do()
File "test.py", line 31, in do
x.parse(sys.argv[1:])
File "stdfparser.py", line 225, in parse
self.process(buf, (typ, sub))
File "stdfparser.py", line 173, in process
self.data[i[0]], buf = self.get_parse_func(tmp)(tmp, buf)
File "stdfparser.py", line 472, in _get_Kx
item, buf = func(item_format, buf)
File "stdfparser.py", line 295, in _get_Nn
return (r, buf[1])
IndexError: string index out of range
What version of the product are you using? On what operating system?
stdfparser-1.0.2
Python 2.6.6
Linux
Please provide any additional information below.
In the function _get_Nn, it's clear it doesn't handle the case len(buf) == 1.
Original issue reported on code.google.com by martin.p...@gmail.com on 28 Jan 2013 at 10:30
Reactions are currently unavailable