You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fuse: safeIntToUint32 does not compile on 32-bit — the overflow guard overflows #198
$ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build ./internal/fuse/
internal/fuse/filesystem.go:37:9: 0xFFFFFFFF (untyped int constant 4294967295) overflows int
A compile error, not a runtime bug — internal/fuse cannot be built for any 32-bit target. This is why linux/armv7 was removed from the release matrix in v0.10.1 rather than fixed; the matrix comment records it (.github/workflows/release.yml:56-58).
The fix is to compare in a width that holds the value — if uint64(i) > math.MaxUint32 after the negative check, or math.MaxUint32 typed appropriately — and the same audit applies to safeIntToUint64 directly above it.
Worth doing because 32-bit ARM is real for this project's users (Raspberry Pi collectors, edge instruments writing to S3), and because a guard function that does not compile on the platform whose overflow it guards against is the wrong shape.
Verification:GOARCH=arm GOARM=7 go build ./... succeeds; a table test covering math.MaxUint32, math.MaxUint32+1 (skipped on 32-bit), -1, and 0; then add linux/armv7 back to the release matrix, since a platform that builds but is not shipped is not tested either.
$ GOARCH=386 GOOS=linux go build ./internal/fuse/
internal/fuse/filesystem.go:37:9: 0xFFFFFFFF (untyped int constant 4294967295) overflows int
The overflow guard overflows at compile time on the architecture it exists to guard. Labelled effort: xs — the fix is the constant's type — but it means internal/fuse has never built for a 32-bit target, so nothing verifies the guard's logic either.
Activity
scttfrdmn commentedon Aug 3, 2026
Reproduced on current main:
The overflow guard overflows at compile time on the architecture it exists to guard. Labelled
effort: xs— the fix is the constant's type — but it meansinternal/fusehas never built for a 32-bit target, so nothing verifies the guard's logic either.build: stop passing three linker flags that set nothing (#357)
fix(fuse): widen the xattr size bound so 32-bit targets compile
feat(vfs,fuse): extended attributes, stored in S3 user metadata (#167) (
feat(release): attach the .deb and .rpm nobody could obtain (#138) (#420
build: drop 32-bit Linux; v0.17.1 was the last release built for it (#…