mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #1285] [MERGED] Not abort process by exception threw from s3fs_strtoofft #1901
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#1901
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/1285
Author: @ggtakec
Created: 5/3/2020
Status: ✅ Merged
Merged: 5/22/2020
Merged by: @ggtakec
Base:
master← Head:wrapped_s3fs_strtoofft📝 Commits (2)
97c249dNot abort process by exception threw from s3fs_strtoofft80c11b6Not abort process by exception threw from s3fs_strtoofft📊 Changes
7 files changed (+91 additions, -59 deletions)
View changed files
📝
src/curl.cpp(+15 -3)📝
src/fdcache.cpp(+7 -34)📝
src/s3fs.cpp(+17 -17)📝
src/s3fs_util.cpp(+5 -5)📝
src/string_util.cpp(+35 -0)📝
src/string_util.h(+2 -0)📝
src/test_string_util.cpp(+10 -0)📄 Description
Relevant Issue (if applicable)
#1256 #1191
Details
Although the s3fs_strtoofft() function throws an exception, the process may abort because s3fs does not catch this exception.(ex. #1256 #1191 )
I prepared a wrap function that catches the exception and returns the result or the value(=default value 0).
The part that called each s3fs_strtoofft function is replaced with these wrap functions.
The s3fs-fuse option analysis function may be left as it is. But it has been modified according to this change.
This fix also helps prevent unexpected aborts in exceptions, but rather to ease debugging difficulties when aborted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.