I have solved this bug. 
The error it is in function "search_clean_snippet" when search single word in 
this while chicle:

        while ((str = strstr (result, (iteration[i])))) {
            gboolean breaking = FALSE;
            gint i;
            str = strstr (str, (iteration[i]));
                if (!str) {
                    breaking = TRUE;
                    break;
                }
            }
        
first of all I have changed the variable i with k, and I have add the control 
in end iterator, that was the problem.

        while ((str = strstr (result, (iteration[i])))) {
            gboolean breaking = FALSE;
            gint k;
            for (k=0; k< count; k++) {
                str++;
                if(iteration[k] ==NULL){
                    breaking = TRUE;
                    break;
                }
                str = strstr (str, (iteration[k]));
                if (!str) {
                    breaking = TRUE;
                    break;
                }
            }


** Attachment added: "Fix crashed with SIGSEGV in strlen()"
   http://launchpadlibrarian.net/20953331/yelp_search_fix.patch

-- 
yelp crashed with SIGSEGV in strlen()
https://bugs.launchpad.net/bugs/272477
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to