Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: resolved vulnerability #177

Merged
merged 2 commits into from
Aug 31, 2022
Merged

build: resolved vulnerability #177

merged 2 commits into from
Aug 31, 2022

Conversation

Aleksey28
Copy link
Contributor

@Aleksey28 Aleksey28 commented Aug 26, 2022

[closes #173]

@@ -112,10 +115,15 @@ export default class JSTestingBackend extends BaseBackend {
}

async takeScreenshot (id, screenshotPath) {
var buffer = await requestApi(BROWSERSTACK_API_PATHS.screenshot(this.workers[id].id));
var image = await jimp.read(buffer);
var buffer = await requestApi(BROWSERSTACK_API_PATHS.screenshot(this.workers[id].id));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a jpeg with pngextention, so this fix would unfortunately not work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your remark. I changed using pngjs to sharp.

@Aleksey28 Aleksey28 merged commit fae91eb into DevExpress:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Security Vulnerability issue
2 participants