[PR #5314] [MERGED] zip: prevent extracting files into parent dirs #74037

Closed
opened 2026-05-05 05:59:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5314
Author: @mxyng
Created: 6/26/2024
Status: Merged
Merged: 6/27/2024
Merged by: @jmorganca

Base: mainHead: mxyng/zip


📝 Commits (1)

  • a4a83f3 zip: prevent extracting files into parent dirs

📊 Changes

3 files changed (+133 additions, -22 deletions)

View changed files

📝 cmd/cmd.go (+3 -3)
📝 server/model.go (+38 -19)
server/model_test.go (+92 -0)

📄 Description

No description provided


🔄 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/5314 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/26/2024 **Status:** ✅ Merged **Merged:** 6/27/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `mxyng/zip` --- ### 📝 Commits (1) - [`a4a83f3`](https://github.com/ollama/ollama/commit/a4a83f3cfa5baf516cf7cceb45f05a65cd9b9a6a) zip: prevent extracting files into parent dirs ### 📊 Changes **3 files changed** (+133 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+3 -3) 📝 `server/model.go` (+38 -19) ➕ `server/model_test.go` (+92 -0) </details> ### 📄 Description _No description provided_ --- <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-05-05 05:59:46 -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#74037