mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2739] [MERGED] Fixed to not call xmlReadMemory if data length is 0 #2757
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#2757
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/2739
Author: @ggtakec
Created: 10/11/2025
Status: ✅ Merged
Merged: 10/11/2025
Merged by: @gaul
Base:
master← Head:fix/xmlparser_error📝 Commits (1)
ed7661dFixed to not call xmlReadMemory if data length is 0📊 Changes
2 files changed (+16 additions, -1 deletions)
View changed files
📝
src/s3fs.cpp(+10 -0)📝
src/s3fs_xml.cpp(+6 -1)📄 Description
Relevant Issue (if applicable)
#2738 #2737
Details
The error
:1: parser error: Document is emptymay be output to stderr.This occurs when calling the following function:
This error is output when buffer is not nullptr and size is 0. (xmlDoc* returns nullptr.)
Therefore, we now check whether the data length is 0 before calling this function.
This fix is not a workaround for the current CI test failures in Ubuntu 25.10 and other releases.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.