Component evidence

NewWriter (csv/writer.go)

vulnerability · Java/CVE-2022-21449/go/src/encoding/csv/writer.go · go · MIT
files

Writes CSV records to an io.Writer with configurable delimiters, quoting, buffering, and CRLF line endings.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/lal0ne/vulnerability | License: MIT | Copyright 2022 lalone
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package csv

import (
	"bufio"
	"io"
	"strings"
	"unicode"
	"unicode/utf8"
)

// A Writer writes records using CSV encoding.
//
// As returned by NewWriter, a Writer writes records terminated by a
// newline and uses ',' as the field delimiter. The exported fields can be
// changed to customize the details before the first call to Write or WriteAll.
//
// Comma is the field delimiter.
//
// If UseCRLF is true, the Writer ends each output line with \r\n instead of \n.
//
// The wri

... (truncated -- full source via MCP)