Project

General

Profile

Bug #8780

Crash when initialising tethering operation

Added by Kevin Gilbert about 6 years ago. Updated almost 5 years ago.

Status:
Incomplete
Priority:
Medium
Assignee:
-
Category:
-
Target version:
-
Start date:
06/14/2012
Due date:
% Done:

20%

Affected Version:
git development version
System:
unknown
bitness:
64-bit
hardware architecture:
amd64/x86

Description

When starting a Tethering operation, Darktable crashes at line 282 in views/capture.c at the statement

sprintf(cv->film->dirname,"%s",dt_variables_get_result(cv->vp));

dt_crash.txt Magnifier - (partial) gdb log (5.31 KB) Kevin Gilbert, 10/05/2013 06:03 AM

History

#1 Updated by Kevin Gilbert about 6 years ago

  • % Done changed from 90 to 50

The root cause is that the source string address is NULL. Why this is so is still subject to investigation.

But initial work has discovered a weakness in the handling of the field "dirname" in the structure "dt_film_t". It is created with a fixed size of 512 bytes (which SHOULD be enough) but this size is not always checked.

What I've done, so far, is to replace the current definition with "gchar *dirname" with other appropriate changes in all affected files.

#2 Updated by Simon Spannagel about 6 years ago

  • Project changed from website to darktable
  • Affected Version set to git development version

Moving to darktable main project, not related to website.
Set the affected version to "git development version" - is that correct? Otherwise please change.

#3 Updated by Tobias Ellinghaus almost 5 years ago

  • Status changed from Confirmed to Incomplete
  • System set to unknown
  • % Done changed from 50 to 20

Any news about this bug?

#4 Updated by Kevin Gilbert almost 5 years ago

Oops! Sorry I've forgotten about this after hitting a brick wall. I can confirm that it still crashes for me. Details are as attached.

BTW, test run on current GIT master.

Also available in: Atom PDF