Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 433 Bytes

detect-buffer-noassert.md

File metadata and controls

9 lines (5 loc) · 433 Bytes

Detects calls to "buffer" with "noAssert" flag set (security/detect-buffer-noassert)

⚠️ This rule warns in the ✅ recommended config.

Detect calls to buffer with noAssert flag set.

From the Node.js API docs: "Setting noAssert to true skips validation of the offset. This allows the offset to be beyond the end of the Buffer."