Skip to content

Bug sweep, installer icon cache, Security module 2 - #27

Merged
otzpt merged 2 commits into
mainfrom
fix/bug-sweep
Nov 9, 2026
Merged

otzpt merged 2 commits into
mainfrom
fix/bug-sweep

Conversation

@otzpt

@otzpt otzpt commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Two commits from a read-and-run sweep of the repo. The second (955dd04) fixes the findings the first left open and three defects found reviewing the first commit's diff.

What changed

  • Installer: install.sh refreshes an existing GTK icon cache, verifies the tarball's sha256, makes a relative --prefix absolute, and quotes the path in the wrapper and the Exec= line.
  • Release workflow: ships the Git course on Linux, publishes codelearner-linux-x86_64.tar.gz.sha256, gives contents: write to the release job only, and pins softprops/action-gh-release to a commit.
  • Security module 2: plain HTTP is readable on the wire. Uses a loopback tap in Python (no root, no Wireshark). Also fixes the EOF traceback in the Security and Python menus.
  • Menus: C, C++, GUI, launcher and Libraries refuse trailing garbage and numbers too big for an int.
  • C modules 16 to 18: scratch files live in a private mkdtemp directory instead of fixed /tmp names.
  • Lesson fixes: wrong or unverified claims, EOF and loop hangs, unquoted paths, version_parse overflow, missing Makefile dependencies, across the C, C++, Python, JS, Java, Git, Libraries, Rust, Arduino and Assembly courses.
  • Docs: README, ROADMAP, SECURITY.md and release notes brought in line with the repo.

Checked

First commit, on a Linux machine, as reported by that run:

  • C and C++ build with no warnings.
  • tools/check-teaching-order.py: 151 exercises clean.
  • node --check, Python compile and bash -n on all scripts.
  • Security module 2 run end to end with its challenge solution.

Second commit, on a Windows machine with no C, C++, Java, Rust or Python:

  • install.sh under dash with fake uname and curl and a hand-built tarball: good checksum, wrong checksum refused with nothing installed, no checksum published (warns, installs), a prefix containing a space, ', $, % and a backtick, a relative prefix run from another directory, --help when piped, --uninstall.
  • Exec= escaping compared with the Desktop Entry spec's rules for $, backslash, ", backtick and %.
  • java/run with a fake java reporting 25, 21, 1.8, 22 after a JAVA_TOOL_OPTIONS notice, and with no java at all.
  • Git course modules 8, 9 and 10 with no git identity configured, on piped input: the conflict appears, nothing is left in TMPDIR, module 9 skips gh when it is not logged in, 09 selects a module without a bash error.
  • node --check on all JS files; modules 6, 7 and 13 exit 0 with empty stderr.

Not checked

  • The second commit has not been compiled. Its C, C++ and NASM changes (menus, c/src/ui.c, modules 16 to 18, the bracket checker, the C++ module 8 solution, Assembly module 9, the new launcher/test_update.c cases) have only been read. Modules 16 to 18 have not been walked in their new scratch directory.
  • The Release workflow has not run on this branch, so the workflow edits are unexercised. The first commit's Java and Rust changes are also still uncompiled. gh workflow run release.yml --ref fix/bug-sweep covers all of the above except walking the modules; its publish job only runs for a version tag.
  • tools/check-teaching-order.py was not re-run after the second commit (no Python here).
  • No ASan/UBSan build, no QEMU or AVR runs beyond what the workflow does.

Known limits

  • A release with no .sha256 only warns, because releases made before this one do not publish the file. It should become fatal once the latest release carries it.
  • install.ps1 verifies nothing. That script has never been run, and the findings were about install.sh.
  • java/run.bat has no JDK version check.

Related issues

Fixes #15
Fixes #16
Fixes #17
Fixes #18
Fixes #19
Fixes #20

The five items in #26 are also done here; it is left open for the owner to close. Follow-ups not in this PR: #21 to #25.

🤖 Generated with Claude Code

…Security module 2

- install.sh: refresh an existing GTK icon cache so the menu logo shows
- security: module 2 (plain HTTP readable on the wire), EOF handling in menus
- C, C++, Python, JS, Java, Git, Libraries, Rust, Arduino, Assembly: fixes for
  wrong or unverified lesson claims, EOF/loop hangs, unquoted paths, version
  parsing overflow, missing Makefile dependencies
- README, ROADMAP, SECURITY.md, release notes: counts and status brought in
  line with the repo

Java, C# and Rust changes were not compiled (no toolchain here); the rest was
checked with the C/C++ builds, the teaching-order check and syntax checks.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 868463f0-e432-4b4c-8fb4-ddc22dc80732
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Findings the first pass left open:
- Menus in C, C++, GUI, launcher and Libraries refuse trailing garbage and
  numbers too big for an int (atoi and bare stoi accepted both)
- C modules 16-18 work in a private mkdtemp directory, so a file planted
  under a fixed /tmp name can no longer be overwritten or executed
- install.sh verifies the tarball's sha256, makes a relative --prefix
  absolute, and quotes the path in the wrapper and the Exec= line
- release.yml publishes the .sha256, limits contents: write to the release
  job, and pins the release action to a commit
- C++ module 8 solution no longer prints a trailing space, Git module 9
  skips gh when it is not logged in, Assembly module 9 no longer states one
  linker's file size as fixed

Defects in the drafted fixes:
- The C bracket checker skipped the store when full but still moved top,
  so pop read past items[]; push now refuses and the caller stops
- java/run read only line 1 of java -version, which JAVA_TOOL_OPTIONS
  pushes down; README warns default-jdk can be older than 22
- Repaired a broken sentence in c/ROADMAP.md; added version_parse tests

Not compiled: the machine used has no C, C++ or NASM toolchain. install.sh,
java/run and the Git course were run with fakes for uname, curl and java.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@otzpt
otzpt merged commit c121d2b into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant