-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
Description
Backtrace:
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
Platform: macos aarch64
Version: 2.6.6
Args: ["deno", "run", "deno_panic_repro.ts"]
thread 'main' (41349250) panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-1949cf8c6b5b557f/generic-array-0.14.7/src/lib.rs:572:9:
assertion `left == right` failed
left: 0
right: 16
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: deno_node::ops::crypto::cipher::DecipherContext::final
5: deno_node::ops::crypto::op_node_decipheriv_final::op_node_decipheriv_final::slow_function_impl
6: deno_node::ops::crypto::op_node_decipheriv_final::op_node_decipheriv_final::v8_fn_ptr
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Script to reproduce:
import crypto from "node:crypto";
import { Buffer } from "node:buffer";
const decipher = crypto.createDecipheriv('aes-256-ecb', Buffer.alloc(32), '');
decipher.setAutoPadding(false);
decipher.end(Buffer.alloc(16));Copilot