TheQwertiest / foo_spider_monkey_panel

foobar2000 component that allows to use JavaScript to create CUI/DUI panels
https://theqwertiest.github.io/foo_spider_monkey_panel/
MIT License
274 stars 21 forks source link

Foobar crashes when using include and file is missing in Wine #175

Open regorxxx opened 2 years ago

regorxxx commented 2 years ago

In particular this line crashes the entire foobar instance: include('..\\..\\helpers\\helpers_xxx_dummy.js')

Dummy being an empty file. Tested on Spider Monkey Panel v1.6.2-dev+7c0928b, and wine 7.11 (mdac28 wsh57)

See https://hydrogenaud.io/index.php/topic,120978.msg1012020.html#msg1012020

There are multiple dumps provided at the thread.

regorxxx commented 2 years ago

Well, it's not a problem only with relative paths, include crashes foobar in all cases when files are missing at the given path.

regorxxx commented 2 years ago

https://hydrogenaud.io/index.php/topic,120978.msg1012130.html#msg1012130

"use strict";
include('a.js');
"use strict";
include('myfolder\\a.js');
"use strict";
include('..\\a.js');

All three crash foobar in Wine but only crash the panel on windows. User uploaded the dumps btw.