[PR #7533] [MERGED] runner.go: Check for zero length images #17726

Closed
opened 2026-04-16 06:12:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7533
Author: @jessegross
Created: 11/6/2024
Status: Merged
Merged: 11/8/2024
Merged by: @jessegross

Base: mainHead: jessegross/zero_image


📝 Commits (1)

  • e459ffd runner.go: Check for zero length images

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 llama/runner/image.go (+4 -0)

📄 Description

If we get a request with a zero length image, it will result in an out-of-bounds error when we pass the data to the image encoder.


🔄 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/7533 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 11/6/2024 **Status:** ✅ Merged **Merged:** 11/8/2024 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/zero_image` --- ### 📝 Commits (1) - [`e459ffd`](https://github.com/ollama/ollama/commit/e459ffd6cf21b86d01e0316d7fb22ab37fff0513) runner.go: Check for zero length images ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llama/runner/image.go` (+4 -0) </details> ### 📄 Description If we get a request with a zero length image, it will result in an out-of-bounds error when we pass the data to the image encoder. --- <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-16 06:12:09 -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#17726