diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-11 05:30:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-11 05:30:44 +0400 |
commit | 3fc0d2691ddc1a0c8b1a808791924561b306cec1 (patch) | |
tree | dee85f24cd54d3c85d5191e7ce8e38edb255fcd1 /source/blender/blenkernel/intern/report.c | |
parent | 0deb074f1c09d4e2bf74cd099bce565aea4527bb (diff) |
include a stacktrace in the crashlog text written by the segfault handler.
Diffstat (limited to 'source/blender/blenkernel/intern/report.c')
-rw-r--r-- | source/blender/blenkernel/intern/report.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/report.c b/source/blender/blenkernel/intern/report.c index 3acb35260cb..1fd7dc14c23 100644 --- a/source/blender/blenkernel/intern/report.c +++ b/source/blender/blenkernel/intern/report.c @@ -302,7 +302,7 @@ int BKE_reports_contain(ReportList *reports, ReportType level) return FALSE; } -static bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header) +bool BKE_report_write_file_fp(FILE *fp, ReportList *reports, const char *header) { Report *report; @@ -321,8 +321,6 @@ bool BKE_report_write_file(const char *filepath, ReportList *reports, const char { FILE *fp; - /* first try create the file, if it exists call without 'O_CREAT', - * to avoid writing to a symlink - use 'O_EXCL' (CVE-2008-1103) */ errno = 0; fp = BLI_fopen(filepath, "wb"); if (fp == NULL) { |