It is "pid_get_command_line" in gtkmountoperation-x11.c, but it's not
"cmdline_contents" but "cmdline_len" that is the problem.

"cmdline_len" is coming back from "g_file_get_contents" as 0.

There is then the loop:

for (n = 0; n < cmdline_len - 1; n++)

and "n" and "cmdline_len" are unsigned..... so -1 is 0xFFFFFFFF.

So you can just stick in a check before the for loop to check
"cmdline_len" is greater than 0, and only do the loop if it is.

The next question of course is should "g_file_get_contents" be able to return a 
"cmdline_len" that is 0?
I'll put the standard nautilus and try apport.

-- 
safely remove drive causes segfault in libgobject and libXtst
https://bugs.launchpad.net/bugs/462364
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