Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026783RunnerUbuntuPublic2017-06-06 21:552017-07-26 10:08
ReporterYellowAfterlife 
Assigned ToFritz 
PriorityMediumSeverityA - Crash/HangReproducibility100%
StatusClosedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
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 Version7.7.1474
2.x Runtime Version2.0.6.96
2.x Runtime Version Verified In
Attached Files? file icon a_bug.gmz [^] (119,446 bytes) 2017-06-06 21:55

- Relationships

-  Notes
(0054567)
Sam Cumming (Administrator)
2017-07-26 10:08

Verified > 1.4.1769 - Closing.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker