Repository navigation
Bug sweep, installer icon cache, Security module 2 - #27
Merged
Merged
Conversation
…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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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]>
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
install.shrefreshes an existing GTK icon cache, verifies the tarball's sha256, makes a relative--prefixabsolute, and quotes the path in the wrapper and theExec=line.codelearner-linux-x86_64.tar.gz.sha256, givescontents: writeto the release job only, and pinssoftprops/action-gh-releaseto a commit.mkdtempdirectory instead of fixed/tmpnames.version_parseoverflow, missing Makefile dependencies, across the C, C++, Python, JS, Java, Git, Libraries, Rust, Arduino and Assembly courses.Checked
First commit, on a Linux machine, as reported by that run:
tools/check-teaching-order.py: 151 exercises clean.node --check, Python compile andbash -non all scripts.Second commit, on a Windows machine with no C, C++, Java, Rust or Python:
install.shunder dash with fakeunameandcurland 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,--helpwhen piped,--uninstall.Exec=escaping compared with the Desktop Entry spec's rules for$, backslash,", backtick and%.java/runwith a fakejavareporting 25, 21, 1.8, 22 after aJAVA_TOOL_OPTIONSnotice, and with nojavaat all.TMPDIR, module 9 skipsghwhen it is not logged in,09selects a module without a bash error.node --checkon all JS files; modules 6, 7 and 13 exit 0 with empty stderr.Not checked
c/src/ui.c, modules 16 to 18, the bracket checker, the C++ module 8 solution, Assembly module 9, the newlauncher/test_update.ccases) have only been read. Modules 16 to 18 have not been walked in their new scratch directory.gh workflow run release.yml --ref fix/bug-sweepcovers all of the above except walking the modules; its publish job only runs for a version tag.tools/check-teaching-order.pywas not re-run after the second commit (no Python here).Known limits
.sha256only warns, because releases made before this one do not publish the file. It should become fatal once the latest release carries it.install.ps1verifies nothing. That script has never been run, and the findings were aboutinstall.sh.java/run.bathas 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