Repository navigation
Closed
Labels
bugSomething isn't working
Description
Found by a read-and-run sweep of this area on 2026-11-09. Each item was reproduced by a finder and checked by a second agent that tried to refute it.
Status key: fix drafted = a change exists on a local branch (fix/bug-sweep) but is not reviewed or merged. refuted = the second agent could not confirm it; kept here for a human decision.
- F1 (fix drafted)
libraries/python/13-exceptions.py:22: Page calls open() on the battery file without closing it, so check-pages.py FAILS on any machine with a battery. It also teaches the leak that 11-open.py warns against. - F2 (fix drafted)
libraries/c/16-math.c:11: The page says '-lm goes AFTER the source file' and 'Forget -lm and the link fails'. A run contradicts both. CONTRIBUTING.md already lists the first claim as known-false. c/00-index.txt:17 repeats it. - F3 (fix drafted)
cpp/src/lessons_basics.cpp:434: Module 5 says g++ flagsfor (auto n : nums) { n *= 10; }with 'warning: variable n set but not used [-Wunused-but-set-variable=]'. g++ prints no warning. - F4 (fix drafted)
cpp/src/lessons_modern.cpp:329: Module 8 says 'On this compiler, right now, [v[100]] aborts with an assertion: Assertion __n < this->size() failed.' With the course's own Makefile flags it does not abort. - F5 (fix drafted)
cpp/src/lessons_modern.cpp:240: Module 7 says 'Default arguments work exactly as in the C course's power(base, exp = 2) -- nothing new there.' C has no default arguments and the C course contains no such function. The part titled 'overloading and defaults' never shows a default argument. - F6 (fix drafted)
cpp/src/lessons_basics.cpp:325: Modules 4 and 6 set std::boolalpha on std::cout and never reset it. Visiting module 6 first, or module 4 a second time, makes module 4's 'raw bool' line print true, contradicting its own text ('Printed raw, a bool is still 1 or 0'). lessons_modern.cpp:62 sets it in module 6. - F7 (fix drafted)
cpp/src/lessons_modern.cpp:153: Module 6's challenge 'example code' vector ends with three prose lines (rbegin()/rend() walk ...) that are not comments. The solution shown to the student does not compile (CONTRIBUTING: a solution that does not compile is worse than none). - F8 (fix drafted)
cpp/src/lessons_modern.cpp:802: Module 11 writes a fixed, predictable file name (/codelearner_m11_test.cpp) with std::ofstream, which follows symlinks. A local attacker can pre-create that name as a symlink to a victim file; running the module overwrites the target. std::remove then deletes the link. - F9 (fix drafted)
cpp/src/lessons_assembly.cpp:58: runNasmDemo passes the unquoted path to popen(). If the course lives in a directory whose path has a space, the shell splits it. The module still says 'asm/use_asm is built, and this is what it printed just now:' and then prints nothing. - F10 (fix drafted)
libraries/src/main.c:420: run_page builds shell commands (cc -o '%s/program', rm -rf '%s') from the scratch path taken from $TMPDIR. safe_path() is applied to the page path and program directory but not to the scratch path. A quote in TMPDIR breaks the commands and can inject shell code. In the plain breakage case the scratch directory is leaked. - F11 (fix drafted)
launcher/src/update.c:16: version_parse overflows int in sscanf %d (undefined behaviour). It also accepts whitespace and a leading '+' despite the header contract that anything else returns 0. - F12 (fix drafted)
libraries/c/38-signal.c:33: Page says 'SIGKILL numbers and SIGUSR1's number differ between architectures'. SIGKILL is 9 on every Linux architecture. Only SIGUSR1 (and others) differ. - F13 (fix drafted)
libraries/c/70-ansi-escape-codes.c:30: The page cites no-color.org but treats an empty NO_COLOR as 'set'. That spec says NO_COLOR counts only when present and non-empty. Python page python/70-ansi-escape-codes.py:32 has the same check. - F14 (refuted)
cpp/src/lessons_modern.cpp:369: Module 8's challenge states the expected output as '1 2 5' but the shown solution prints '1 2 5 ' (trailing space). The lesson says the printed output is the whole specification. - F15 (fix drafted)
libraries/c/35-pwd.c:22: Notes refer to a 'terminal and shell page' (also python/30-pwd-getpass.py:12 'shell and terminal page'). No such page exists in either track. - F16 (fix drafted)
libraries/c/42-ifaddrs.c:3: Page is filed under GROUP: POSIX and listed under POSIX in c/00-index.txt, but the same index table says ifaddrs.h is 'BSD, provided by glibc'. ifaddrs.h is not POSIX. - F17 (refuted)
launcher/src/main.c:396: Menu input is parsed with atoi/std::stoi, which ignore trailing garbage, so '2xyz' or '12abc' selects entry 2 or 12. Same pattern in gui/src/main.c:74, cpp/src/main.cpp (stoi) and libraries/src/main.c:658.
Not run in this sweep (tool missing or out of scope):
- GTK4 is not installed: none of the gui/src/lessons_gtk.c example programs (window title, button relabel, GtkBox variant) could be compiled or run. Only the 'gtk/gtk.h: No such file or directory' error was reproduced.
- libasan/liblsan are missing (
cannot find -lasan), so nothing was built with -fsanitize. The 'Real LeakSanitizer output' text in cpp modules 9 and 12 (with placeholder pid ==12345==) could not be reproduced. - libraries/c/90-raylib.c was not compiled or run: raylib is not installed (check-pages skips it).
- check-browser.py was run only on a scratch copy of libraries/ (so ./libraries was not built inside the repo). It passed: C 40 pages opened/39 ran, Python 29/28, all 21 headers found by search.
- Windows code paths (#ifdef _WIN32 in launcher, cpp, gui) were not built or run. javac, dotnet, rustc, qemu, avr-gcc and shellcheck are unavailable and out of scope.
- The 'no-color.org: empty NO_COLOR must not disable colour' rule behind F13 was not fetched in this run.
makewas not run inside the repo (build output goes to the scratchpad). Equivalent g++/gcc commands with -Wall -Wextra were used. cpp, gui, launcher and libraries/src/main.c built with zero warnings, and launcher/test_update passed 27 checks, 0 failed.- The GitHub release fetch ('u' in the launcher) ran once against the live API and returned v1.7.0. The 'neither curl nor wget' branch was run with PATH=/nonexistent.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity