Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0027881RunnerHTML5Public2017-09-21 11:412017-09-25 16:24
ReporterYellowAfterlife 
Assigned ToMike Dailly 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusResolvedResolutionFixed 
PlatformWindowsOSWindows 8OS Version8.1
Summary0027881: HTML5: INI functions add a new obfuscated "section name" pair on each run
DescriptionCode:
ini_open("gms2.ini");
ini_write_string("test", "key", "val");
ini_close();
var f = file_text_open_read("gms2.ini");
while (!file_text_eof(f)) {
    show_debug_message(file_text_read_string(f));
    show_debug_message(file_text_readln(f));
}
file_text_close(f);


First run:

[test]
_Cl2="test"
key="val"


Second run:

[test]
_Cl2="test"
_tk2="test"
key="val"


Third run:

[test]
_Cl2="test"
_Kj2="test"
_tk2="test"
key="val"


The issue lies in internal (flush?) function called from ini_close - it does not write the variable name if it's __m_pIniFileName__, but that variable name gets obfuscated outside of debug builds.

Whitelisting it would resolve the problem.
1.4 Version1.4.17
2.x Runtime Version2.1.0.144
2.x Runtime Version Verified In
Attached Files? file icon a_bug.yyz [^] (768,471 bytes) 2017-09-21 11:41

- Relationships

-  Notes
(0055689)
Mike Dailly (Manager)
2017-09-25 16:24

fixed in gitlab


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker