#9 Pebrot crashes when backspacing on long input lines

open
nobody
5
2010-08-29
2010-08-29
Geoff Shang
No

This bug exists in Pebrot 0.8.9 but has existed for a long time before this.

If you enter more than 320 characters in an input line and then try to
backspace, Pebrot crashes with the following error:

Traceback (most recent call last):
File "/usr/bin/pebrot", line 16, in <module>
pypebrot.pebrot.main()
File "/usr/lib/python2.5/site-packages/pypebrot/pebrot.py", line 1998, in main
curses.wrapper( gogogo )
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/lib/python2.5/site-packages/pypebrot/pebrot.py", line 1960, in gogogo
con.loopInput()
File "/usr/lib/python2.5/site-packages/pypebrot/pebrot.py", line 1602, in loopInput
self.oneStep()
File "/usr/lib/python2.5/site-packages/pypebrot/pebrot.py", line 1528, in oneStep
st= self.Text.getLine( self.handleInput, self.step )
File "/usr/lib/python2.5/site-packages/pypebrot/ui.py", line 221, in getLine
if not handleFunc( c ):
File "/usr/lib/python2.5/site-packages/pypebrot/pebrot.py", line 1347, in handleInput
self.Text.delChar()
File "/usr/lib/python2.5/site-packages/pypebrot/ui.py", line 278, in delChar
self.cursPos( self.pos )
File "/usr/lib/python2.5/site-packages/pypebrot/ui.py", line 296, in cursPos
self.p.move( y, x )
_curses.error: wmove() returned ERR

Suggest to either fix bug or limit input line so as to avoid crashing.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks