Affected by GO-2025-3548
and 8 other vulnerabilities
GO-2025-3548 : Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP in github.com/ollama/ollama
GO-2025-3557 : Ollama Allocation of Resources Without Limits or Throttling vulnerability in github.com/ollama/ollama
GO-2025-3558 : Ollama Allows Out-of-Bounds Read in github.com/ollama/ollama
GO-2025-3559 : Ollama Divide By Zero vulnerability in github.com/ollama/ollama
GO-2025-3582 : Ollama Denial of Service (DoS) via Null Pointer Dereference in github.com/ollama/ollama
GO-2025-3689 : Ollama Divide by Zero Vulnerability in github.com/ollama/ollama
GO-2025-3695 : Ollama Server Vulnerable to Denial of Service (DoS) Attack in github.com/ollama/ollama
GO-2025-3824 : Ollama vulnerable to Cross-Domain Token Exposure in github.com/ollama/ollama
GO-2025-4251 : Ollama has missing authentication enabling attackers to perform model management operations in github.com/ollama/ollama
Discover Packages
github.com/ollama/ollama
server
internal
chunks
package
Version:
v0.5.13
Opens a new window with list of versions in this module.
Published: Mar 3, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Count returns the number of Chunks of size chunkSize needed to cover the
range [0, size).
Of returns a sequence of contiguous Chunks of size chunkSize that cover
the range [0, size), in order.
type Chunk struct {
Start, End int64
}
Parse parses a string in the form "start-end" and returns the Chunk.
ParseRange parses a string in the form "unit=range" where unit is a string
and range is a string in the form "start-end". It returns the unit and the
range as a Chunk.
Size returns end minus start plus one.
String returns the string representation of the Chunk in the form
"{start}-{end}".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.