[PR #14283] [CLOSED] fix(cmd): avoid panic when digest is shorter than 12 chars #61296

Closed
opened 2026-04-29 16:22:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14283
Author: @saurabhchopade
Created: 2/16/2026
Status: Closed

Base: mainHead: fix/14250-safe-digest-truncate


📝 Commits (1)

  • fad934d fix(cmd): avoid panic when digest is shorter than 12 chars

📊 Changes

2 files changed (+19 additions, -2 deletions)

View changed files

📝 cmd/cmd.go (+10 -2)
📝 cmd/cmd_test.go (+9 -0)

📄 Description

Fixes #14250

Summary

  • guard digest display in list/ps output to avoid out-of-range slicing
  • add regression test for short digest handling in list

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14283 **Author:** [@saurabhchopade](https://github.com/saurabhchopade) **Created:** 2/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/14250-safe-digest-truncate` --- ### 📝 Commits (1) - [`fad934d`](https://github.com/ollama/ollama/commit/fad934d8aa1fc776b83a4d76948d30820353378a) fix(cmd): avoid panic when digest is shorter than 12 chars ### 📊 Changes **2 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+10 -2) 📝 `cmd/cmd_test.go` (+9 -0) </details> ### 📄 Description Fixes #14250 ## Summary - guard digest display in list/ps output to avoid out-of-range slicing - add regression test for short digest handling in list --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:22:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61296