Automattic / Automattic/node-canvas

this PNG image crashes application when loading

Open
#1,612 3 comments 0 reactions 0 assignees View on GitHub
Bug Images & Formats: PNG
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue or Feature

node process is crashing with following message

```
Exception code=0xc0000005 flags=0x0 at 0x00007FFB878A7DD0. Access violation - attempting to read data at address 0x0000024B46E5D000
```

image in question:

![fail](https://user-images.githubusercontent.com/572298/85976374-b93ccc80-b9da-11ea-9dd4-f579a6e4724f.PNG)

## Steps to Reproduce

```js
var Canvas = require('canvas');
Canvas.loadImage('fail.PNG').then(canvas => console.log(canvas));
```

## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): 2.6.1
* Environment (e.g. node 4.2.0 on Mac OS X 10.8): node v13.14.0 on Windows 10

## Other remarks
on linux it threw "out of memory" error on loading

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.