Replace legacy Buffer constructors
Use Buffer.from, Buffer.alloc, or Buffer.allocUnsafe instead of the deprecated Buffer constructor.
#Metadata
#Why it matters
Legacy constructors behave differently across Node versions and are harder to audit for safe allocation.
#Remediation
Prefer Buffer.from for encoded data and Buffer.alloc for zero-filled buffers sized by trusted logic.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.legacy-buffer-constructor.rule.yaml.