Affected by GO-2022-1107
and 9 other vulnerabilities
GO-2022-1107 : Container build can leak any path on the host into the container in github.com/docker/docker
GO-2023-1699 : Docker Swarm encrypted overlay network may be unauthenticated in github.com/docker/docker
GO-2023-1700 : Docker Swarm encrypted overlay network traffic may be unencrypted in github.com/docker/docker
GO-2023-1701 : Docker Swarm encrypted overlay network with a single endpoint is unauthenticated in github.com/docker/docker
GO-2025-3829 : Moby firewalld reload removes bridge network isolation in github.com/docker/docker
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
GO-2026-5617 : Docker: Race condition in docker cp allows bind mount redirection to host path in github.com/docker/docker
GO-2026-5668 : Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap in github.com/docker/docker
GO-2026-5746 : Docker: `PUT /containers/{id}/archive` executes container binary on the host in github.com/docker/docker
Discover Packages
github.com/docker/docker
pkg
tailfile
package
Version:
v20.10.18+incompatible
Opens a new window with list of versions in this module.
Published: Sep 8, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 253
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package tailfile provides helper functions to read the nth lines of any
ReadSeeker.
Variables
func NewTailReader(ctx context.Context, r SizeReaderAt, reqLines int) (io.Reader, int, error)
func NewTailReaderWithDelimiter(ctx context.Context, r SizeReaderAt, reqLines int, delimiter []byte) (io.Reader, int, error)
func TailFile(f *os.File, n int) ([][]byte, error)
type SizeReaderAt
View Source
var ErrNonPositiveLinesNumber = errors .New ("The number of lines to extract from the file must be positive")
ErrNonPositiveLinesNumber is an error returned if the lines number was negative.
NewTailReader scopes the passed in reader to just the last N lines passed in
NewTailReaderWithDelimiter scopes the passed in reader to just the last N lines passed in
In this case a "line" is defined by the passed in delimiter.
Delimiter lengths should be generally small, no more than 12 bytes
TailFile returns last n lines of the passed in file.
SizeReaderAt is an interface used to get a ReaderAt as well as the size of the underlying reader.
Note that the size of the underlying reader should not change when using this interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.