Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#312 appuifw.Text.delete() with invalid index crashes Python

open
Jukka Laurila
appuifw (50)
5
2008-10-03
2008-10-03
No

The following Python script snippet crashes my Python interpreter in a Symbian "ETEXT 12" panic error:

import appuifw

appuifw.Text().delete(-1, 1)

The bug is rather apparent, the first parameter to the delete function specifies the string index position in the Text component from where to start deleting text. A negative index is clearly invalid. But it should raise a Python exception, not crash Python.

I am using PyS60 version 1.4.4, from SourceForge, installed on a N95 with firmware version 21.0.016

Discussion

    • summary: appui.Text.delete() with invalid index crashes Python --> appuifw.Text.delete() with invalid index crashes Python