#10 Segmentation fault when using Edit->Find.

open
nobody
None
5
2007-06-25
2007-06-25
miknix
No

mysqlnavigator-1.4.2

Description:
-----------
The Edit->Find feature produces a segmentation fault when searching, for example, in information_schema mysql database (with default values).

The segfault is caused by passing a NULL value to heystack of strstr function
in Find::findslot()

The patch provides a additional check to avoid strstr(0x0, ...)

Reproducible: Always

Steps to Reproduce:
1.Connect to a newly installed mysql server.
2.Open Edit->Find.
3.Search in '*' or database 'information_schema'
4.Find something
5.Segmentation fault

Also reported to:

http://bugs.gentoo.org/show_bug.cgi?id=183103

Discussion