The decimal offset (-d) used %ld with an unsigned long value, so offsets above LONG_MAX were printed as negative numbers. Use %lu instead.
$ printf 'AB' | ./xxd -d -o 9223372036854775808
-9223372036854775808: 4142 AB
https://github.com/vim/vim/pull/20055
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
can you add a test for this please?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
CI failure was caused by the test itself being wrong: Test_xxd_buffer_overflow() expected -9223372036854775808: in the address field, which was a side effect of the original %ld-on-unsigned long bug. The address field must be unsigned (consistent with the hex %lx default), so I've updated the expected value to 9223372036854775808:.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()