[Bug 271832] od(1): fails to check -j value correctly

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Jun 2023 00:44:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271832

            Bug ID: 271832
           Summary: od(1): fails to check -j value correctly
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mohd.akram@outlook.com

To reproduce:

printf 1234 > file
od -j 5 file
echo $?

Expected output:

od: cannot skip past end of input
1

Actual output:

0000004
0


It seems to be misreading the file's size since larger values of -j (9+) work
correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.