Affected by GO-2026-4473
and 2 other vulnerabilities
GO-2026-4473: Improper verification of data integrity values for .idx and .pack files in github.com/go-git/go-git
GO-2026-4909: Missing validation decoding Index v4 files leads to panic in github.com/go-git/go-git
GO-2026-4910: Maliciously crafted idx file can cause asymmetric memory consumption in github.com/go-git/go-git

The highest tagged major version is
v6.
package
Version:
v3.1.0+incompatible
Opens a new window with list of versions in this module.
Published: Jul 4, 2016
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Index is a database of objects and their offset in a packfile.
Objects are identified by their hash.
NewFromIdx returns a new index from an idx file reader.
NewFrompackfile returns a new index from a packfile reader.
Get returns the offset that an object has the packfile.
Set adds a new hash-offset pair to the index, or substitutes an existing one.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.