foo_spider_monkey_panel icon indicating copy to clipboard operation
foo_spider_monkey_panel copied to clipboard

Foobar crashes when using include and file is missing in Wine

Open regorxxx opened this issue 2 years ago • 2 comments

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 avatar Jun 27 '22 13:06 regorxxx

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 avatar Jun 27 '22 21:06 regorxxx

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.

regorxxx avatar Jun 27 '22 21:06 regorxxx