View Issue Details

IDProjectCategoryView StatusLast Update
0026783RunnerUbuntuPublic2017-07-26 10:08
ReporterYellowAfterlifeAssigned ToFritz 
PriorityMediumSeverityA - Crash/HangReproducibility100%
Status ClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Product Version 
Target VersionFixed in Version 
Summary0026783: Ubuntu: filename_...() functions corrupt the input string
DescriptionInput:

var s = "some.txt";
trace(filename_drive(s));
trace(s, string_ords(s));
trace(filename_path(s));
trace(s, string_ords(s));
trace(filename_ext(s));
trace(s, string_ords(s));
trace(filename_name(s));
trace(s, string_ords(s));
trace(filename_dir(s));
trace(s, string_ords(s));


(where trace() calls show_debug_message, string_ords() returns an array with string's string_ord_at's)

Output:

some.txt 
�������� { { 1991,28671,65472 },  } 
 
�������� { { 2567,28671,65472 },  } 
 
�������� { { 2567,28671,65472 },  } 
`������� 
�������� { { 40,502,65535,61440 },  } 
 
�������� { { 40,502,65535,61440 },  } 


This usually also causes a subsequent segfault regardless of whether the string is in use or not.
1.4 Found In7.7.1474
2.x Runtime Found In2.0.6.96
2.x Runtime Verified In

Activities

YellowAfterlife

2017-06-06 21:55

Developer  

a_bug.gmz (119,446 bytes)

Sam Cumming

2017-07-26 10:08

Adminstrator   ~0054567

Verified > 1.4.1769 - Closing.