After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351227 - verifypartialmatch crashes for empty text
verifypartialmatch crashes for empty text
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
0.4.x
Other Linux
: Normal major
: ---
Assigned To: Prashanth Mohan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-08-14 02:57 UTC by Prashanth Mohan
Modified: 2006-08-15 11:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Added NULL value to argument list in case of no arguments specified (2.53 KB, patch)
2006-08-15 10:35 UTC, Prashanth Mohan
none Details | Review
modified text_main to check for NULL argument and replaced with "" also made sure that arg_list is never NULL (5.62 KB, patch)
2006-08-15 11:12 UTC, Prashanth Mohan
committed Details | Review

Description Prashanth Mohan 2006-08-14 02:57:09 UTC
Steps to Reproduce crash:

#1. Open Gedit and type in some text
#2. Open Python prompt and do `from ldtp import *'
#3. In python prompt type in `verifypartialmatch ('*gedit','txt0','')' this will cause the ldtp server to crash with segmentation fault
Comment 1 Prashanth Mohan 2006-08-14 03:19:12 UTC
The same happens for `verifysettext' too
Comment 2 Harishankaran 2006-08-14 19:08:02 UTC
Unable to reproduce the bug in Suse 10.1 
in which distro did u produce the bug ?  


Comment 3 Lakshmi Narasimhan 2006-08-14 19:36:15 UTC
Unable to reproduce the bug in FC5.The server doesnt crash
Comment 4 Prashanth Mohan 2006-08-15 10:35:13 UTC
Created attachment 70930 [details] [review]
Added NULL value to argument list in case of no arguments specified
Comment 5 Prashanth Mohan 2006-08-15 11:12:20 UTC
Created attachment 70936 [details] [review]
modified text_main to check for NULL argument and replaced with "" also made sure that arg_list is never NULL