We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Node: v20, v22.8.0 node-canvas: v2.11.2
Node crashes when passing canvas with width or height 0 to createPNGStream(). Ok, this is not a valid thing to do, but it should not crash node.
const canvas = new Canvas(12, 0); const out = fs.createWriteStream('image.png'); const stream = canvas.createPNGStream(); stream.pipe(out); out .on('close', () => { console.log('close, happens'); }) .on('finish', () => { console.log('finish, never happens, node crashes'); }) .on('error', () => { console.log('error, never happens, node crashes'); })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Node: v20, v22.8.0
node-canvas: v2.11.2
Node crashes when passing canvas with width or height 0 to createPNGStream(). Ok, this is not a valid thing to do, but it should not crash node.
The text was updated successfully, but these errors were encountered: