mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1789] [MERGED] Fixed a bug that copied without considering the length of xmlChar #2174
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1789
Author: @ggtakec
Created: 10/26/2021
Status: ✅ Merged
Merged: 10/26/2021
Merged by: @gaul
Base:
master← Head:fix_bug_xmlchar📝 Commits (4)
250002eFixed a bug that copied without considering the length of xmlChar5bb2566Added exclusive control of statc variables in s3fs xml parser8403f42Added exclusive control of statc variables in s3fs xml parserf2b3c62Merge branch 'master' into fix_bug_xmlchar📊 Changes
3 files changed (+102 additions, -17 deletions)
View changed files
📝
src/s3fs.cpp(+27 -0)📝
src/s3fs_xml.cpp(+72 -17)📝
src/s3fs_xml.h(+3 -0)📄 Description
Relevant Issue (if applicable)
#1771 #1772
Details
When copying the string of
xmlChartostd::string, the end of the original string cannot be caught.xmlChar is
unsigned char*and also supports UTF8 strings.Therefore, I checked the length of
xmlCharwithxmlStrlenand modified it to copy.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.