[PR #1694] [MERGED] Ensure NUL-terminated result after strncpy #2121

Closed
opened 2026-03-04 02:03:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1694
Author: @CarstenGrohmann
Created: 6/20/2021
Status: Merged
Merged: 6/20/2021
Merged by: @ggtakec

Base: masterHead: strncpy


📝 Commits (1)

  • 91968b9 Ensure NUL-terminated result after strncpy

📊 Changes

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

View changed files

📝 src/s3fs.cpp (+4 -3)

📄 Description

Long symlinks may cause that the result buffer is filled and not proper terminated with a null byte.


🔄 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/s3fs-fuse/s3fs-fuse/pull/1694 **Author:** [@CarstenGrohmann](https://github.com/CarstenGrohmann) **Created:** 6/20/2021 **Status:** ✅ Merged **Merged:** 6/20/2021 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `strncpy` --- ### 📝 Commits (1) - [`91968b9`](https://github.com/s3fs-fuse/s3fs-fuse/commit/91968b92e9bf635e87e592f0d7a0909c6df58521) Ensure NUL-terminated result after strncpy ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+4 -3) </details> ### 📄 Description Long symlinks may cause that the result buffer is filled and not proper terminated with a null byte. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:03:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2121
No description provided.