Affected by GO-2025-3557
and 7 other vulnerabilities
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
mlx
mlxthread
mlxthreadtest
package
Version:
v0.40.16
Opens a new window with list of versions in this module.
Published: Nov 8, 2026
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
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package mlxthreadtest runs tests on a persistent MLX worker thread.
Run executes fn on thread. The callback must use its T argument; calling
FailNow or SkipNow on a captured *testing.T terminates the pinned worker.
T is the subset of testing.T supported by MLX test bodies. Operations that
end a test are replayed by Run on the test goroutine so the MLX worker remains
alive.
func (t *T ) Cleanup(fn func())
Cleanup registers fn to run on the MLX thread after the current body.
func (t *T ) Fatal(args ...any )
func (t *T ) Skip(args ...any )
func (t *T ) Skipped() bool
Thread is a pinned worker used by MLX tests.
Start creates a pinned test worker.
Do runs fn on the pinned worker.
Stop shuts down the pinned worker after running cleanup on it.
Worker returns the worker for handlers that dispatch their own MLX jobs.
Call those handlers from the test goroutine, not from Run's callback.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.