ioreadall

package
v0.0.0-...-ec0dbc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ioreadall defines an Analyzer that checks for the use of (io|ioutil).ReadAll.

Analyzer ioreadall

ioreadall: check for use of io.ReadAll().

The ioreadall checker looks for calls to ReadAll() from the io and ioutil packages. If misused, it the function can be used as a possible attack vector (e.g. an attacker gets the program to read a very large file which fills up memory leader to a denial of service attack). Users are encouraged to use alternative constructs such as making use of io.LimitReader.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "ioreadall",
	Doc:      `check for "io.ReadAll" instances`,
	URL:      "https://github.com/cilium/linters",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer implements an analysis function that checks for the use of io.ReadAll.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL