mirror of
https://github.com/rclone/rclone.git
synced 2026-05-12 01:57:56 -04:00
When a Proton Drive file has no active revision attributes, readMetaDataForLink returns a nil FileSystemAttrs and Object.originalSize is left as nil. Object.Open then dereferenced this nil pointer when calling fs.FixRangeOption, causing a SIGSEGV during copy. Use Object.Size() instead, which already implements the correct fallback to the link size when originalSize is unavailable. This updates the github.com/rclone/Proton-API-Bridge package to fix a segfault when reading files with no metadata. Fixes #9377 Fixes #9117