Skip to content

v11.0.512

Choose a tag to compare

@github-actions github-actions released this 30 Sep 05:58
· 152 commits to main since this release

C-Kermit 11.0.512

September 30, 2026

This is primarily a cleanup and maintenance release. I have been adding numerous tests in anticipation of more work reducing warnings on modern toolchains, with the aim of having a good chance of catching any accidental regressions. Along the way, the tests and analysis have surfaced some bugs, which have been fixed.

Additionally, due to being broken for over 25 years and the impracticality of restoring support, I removed support for 16-bit Unix platforms from the codebase. This removed over 1900 lines of code from the project. See further notes in commit 30ab9d4. For instance, I had made a solid effort to get C-Kermit to build again on 2BSD on PDP-11, but according to the historic notes, C-Kermit 7 was already iffy on that platform, and the last real published binaries were from C-Kermit 6. Memory issues with the compiler, preprocessor, and compiled binaries were significant and insurmountable without significantly harming both the maintainability of the code and the featureset present on the old platforms.

At the same time, I added the first 32-bit platform as part of CI, which is 32-bit Linux armhf. This serves the twin goals of providing a useful binary for platforms such as Raspberry Pi, and providing a measure of validation in CI that we don't break things on 32-bit platforms.

Additional changes:

  • Behavior change: In some cases, particularly when reliable isn't assumed, file names could be silently truncated if they were larger than would fit in a single packet. Now, an error packet is generated and returned if the filename would require truncation. This is an unusual case impacting files with very long names, so I don't think it likely anyone will notice this change, but it should avoid unpleasant surprises.

  • Behavior change: rounding -0 now produces 0 instead of -0.

  • Report sizeof(time_t) in SHOW FEATURES and associated regression test. Note 32-bit Linux platforms have transitioned to 64-bit time_t, but this is not universally true across the BSDs, so we don't require 64-bit time_t on every CI platform.

  • Fix a number of time-related overflows.

  • Fix a heap buffer overflow in getlocalipaddrs() and add associated test. 64-bit platforms try to read 8 bytes from a 4-byte allocation. However, on Linux at least, this isn't an exploitable security hole as malloc() on Linux allocates more than 8 bytes at a time anyhow. The original bug was introduced when the code in question was written, in C-Kermit 7.0.197 of 2000, commit d0f8b1d.

  • Close pipe fds on exec where appropriate. This prevents leakage and issues with failing to shut down.

  • Added testing for \fsexpression() past 4GB. Fixed \fsexpression() wrong results near the 2^53 double boundary, discovered by new tests.

  • Fixed handling in cases where a filename length causes a packet to exceed the current packet size.

  • Fixed invalid JPEG segment length handling in \fpictureinfo()

  • Fixed FILE COUNT for files >2GB in size on platforms that support a 64-bit CK_OFF_T. Platforms that don't support that won't support large file size reporting anyhow.

  • Fix incorrect handling of file dates before 1970 or after 2106.

  • Fix a shxpand() buffer overflow, detected with ASan.

  • SHOW TERMINAL now properly will reflect SET TERMINAL AUTODOWNLOAD ASK on all platforms.

  • Fix building unit tests on ppc64 platforms.

  • Fix IPv6 tests on systems were /etc/hosts gives a name for ::1 that isn't localhost.

  • Reject a SEND AS-NAME that doesn't fit in a buffer instead of leaking stack.

  • Fixed an asan-detected issue in newerrmsg()

  • When a SEND or GET switch is given more than once, fixed edge cases that could cause a double free.

  • Used safer string generation for switch values and login names (makestr() instead of malloc() and strcpy())

  • Correct an obscure data corruption bug that could occur when a telnet command arrives at a certain buffer boundary.

  • Several chunk length handling fixes in the HTTP client code:

    • Fixed a length truncation bug on 64-bit platforms and added a regression test for it. The original bug was introduced in C-Kermit 8.0.200 of 2001, commit c88d9b8.
    • Use CK_OFF_T instead of int for the chunk size, causing 32-bit platforms to use a 64-bit size, enabling support for large chunks on 32-bit platforms.
    • Fixed parsing the chunk size when an extension (beginning with a semicolon) follows it. Previously, it would truncate a numeric digit.
  • Added numerous additional tests:

    • Validating off_t and general large file (>2GB, >4GB) support on 32-bit and 64-bit platforms
    • For DIR and DIR /SUMMARY with files >4GB, including on 32-bit platforms
    • For REGET resuming files >4GB, validating encoding/decoding large file sizes in the Kermit protocol
    • Testing \fsexpression() past 4GB.
    • Added a test for telnet IAC negotiation.
    • Generally, many regression tests in preparation for work to remove -Wconversion warnings.
    • Tests for filename length, including the prompt in autodownload ask mode.
    • Tests for username length.
    • Testing \fjoin CSV quoting of a large field.
    • Testing GET handling of large patterns for /MOVE-TO, /AS-NAME, /FILTER, and /EXCEPT with large parameters.
    • Testing SEND, CONNECT, and ADD SEND-LIST with values >255 chars.
    • Test IKSD login with large username and password.
    • Direct telnet and FTP tests with supplied protocol data