! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Segmentation Fault : Create Document -> Empty File
Status:
CLOSED: FIXED

Comments

Description Michael Sawczuk 2006-10-23 21:08:38 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: 

When creating a new empty file with a printf style format character in it (such as %s) thunar segfaults. This will probably be cause with an unsanitised string being passed to a function that checks for these characters. A fix includes just padding all %'s with another %.

Reproducible: Always

Steps to Reproduce:
1. Right Click Create Document -> Empty File
2. Name Document that contains %s i.e. Text %s Document
3. Click OK

Actual Results:  
Seg Fault

Expected Results:  
File should be named Text %s Document.

May be an error involving a function named something like g_strdup_f.
Comment 1 Benedikt Meurer editbugs 2006-10-28 10:07:08 CEST
Fixed with revision 23538.

2006-10-28	Benedikt Meurer <benny@xfce.org>

	* thunar-vfs/thunar-vfs-job-private.h, thunar-vfs/thunar-vfs-job.c:
	  Handle file names with printf(3)-style format arguments properly
	  when emitting the "info-message" signal from a job. Bug #2468.

Bug #2468

Reported by:
Michael Sawczuk
Reported on: 2006-10-23
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
0.4.0rc1

Attachments

Additional information