Skip to content

artmg tmsize prevent overflow

This patch addresses bug 13622 where large macos Time Machine backups onto low precision arm devices fail due to overflow.

It is a minor change to vfs fruit module, forcing the type during arithmetic in order to prevent overflow. Following advice from @jrasamba I left the overflow detection for outlying cases. The fix has been successfully tested on the 32-bit armv7l architecture.

For further information see messages trans-posted from samba into samba-technical under the thread 'vfs fruit disk_free fails on tmsize overflow with macOS Time Machine'.

Merge request reports