Repository navigation
v11.0.512
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)inSHOW FEATURESand associated regression test. Note 32-bit Linux platforms have transitioned to 64-bittime_t, but this is not universally true across the BSDs, so we don't require 64-bittime_ton 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 COUNTfor files >2GB in size on platforms that support a 64-bitCK_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 TERMINALnow properly will reflectSET TERMINAL AUTODOWNLOAD ASKon 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-NAMEthat doesn't fit in a buffer instead of leaking stack. -
Fixed an asan-detected issue in newerrmsg()
-
When a
SENDorGETswitch 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 ofmalloc()andstrcpy()) -
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_Tinstead ofintfor 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_tand general large file (>2GB, >4GB) support on 32-bit and 64-bit platforms - For
DIRandDIR /SUMMARYwith files >4GB, including on 32-bit platforms - For
REGETresuming 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
\fjoinCSV quoting of a large field. - Testing
GEThandling of large patterns for/MOVE-TO,/AS-NAME,/FILTER, and/EXCEPTwith large parameters. - Testing
SEND,CONNECT, andADD SEND-LISTwith values >255 chars. - Test IKSD login with large username and password.
- Direct telnet and FTP tests with supplied protocol data
- Validating