Package: jacksum
Version: 1.7.0-4.1
Severity: important

Dear Maintainer,

jacksum seems to try to parse text when input is read from stdin.
When reading from file, binary data seems not to cause any problem.
Incorrect summing seems only to occur on data that is no valid UTF-8.
The parser on stdin also messes with the length of data, as seen on
the output.

To reproduce:
$ echo "f3 80 10 21 bd e8 c9 30 17" | xxd -r -p > tst
$ jacksum -X -a crc16+xor8 tst
6FD2F9 9 tst
$ jacksum -X -a crc16+xor8 < tst
3D1E16 16 -

UTF-8 and missing \n at end of file is no problem:
$ echo -n "→ÄäÜüÖößẞſ€•–Ξ√ΛℂΨΓΦℚΔ∂ℝℕ∃∀∫⊂∪∩ℵΠℤ⇐⇔⇒↦Θ∣⊗∸∔⌉⋂⌈✔" > tst
$ jacksum -X -a crc16+xor8 tst
5FF1E5 125 tst
$ jacksum -X -a crc16+xor8 < tst
5FF1E5 125 -

Thank You for Your effort.

Best Regards
Michael

-- System Information:
Debian Release: 9.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jacksum depends on:
ii  default-jre  2:1.8-58

jacksum recommends no packages.

jacksum suggests no packages.

-- no debconf information

Reply via email to