How languages handle bugs. Each test is a program with one bug, run in each language.
Language constructs: tests whose bug is made with an operator, a cast, a type, a declaration or control flow. Standard-library defaults: tests whose bug is made through a standard-library call, made the way the language teaches first. With safer calls: the score when the program uses the standard library's other call for the same job where one does better (Notes, Safer calls); each such program runs and is scored like the first. The fourth layer, a check the programmer writes by hand, is the fixed program every result is checked against: any language can write it, so it is not scored.
Each cell reads correct / attempted / total. Correct is points: a refusal or correct run earns 1, a run-time stop 0.5 or 0.25. Attempted below total means a missing feature. Caught before running counts refusals and design-prevented tests.
Each test is one program with one input, so one result shows how a language handled that program. A failure mode groups the tests that make the same kind of mistake in different ways (eight integer overflows, eleven missing values); a language that scores well on every test of a mode handles the class, not one instance. Cells read correct / attempted / total.
Each row is a test and each column a language, in rank order. Select a test or a cell to see its evidence below the grid. An outlined cell is a failure the language accepts by design.
Pick two languages. Each square is one test, grouped by category. Its color names the language that scores the test higher, darker for a wider margin. Select a square to open its test.
Points reflect when the bug is caught and whether it does harm. A refusal stops it before it ships: 1. A clear stop in the shipped build: 0.5. A stop only in the debug build: 0.25. A wrong answer, corruption, crash or hang: 0. A stop counts only if it comes before the result is printed.
The ranked score counts every test once, so a kind of bug with more tests weighs more. Two other weightings sit beside it on the leaderboard. By category gives each of the thirteen categories the same weight, split over the tests it holds. By severity weights each test by how much harm its failure mode does in production, below. A test the language cannot attempt drops out of all three.
A right answer earns its point only where the language defines the behavior that gave it. Where the language leaves that behavior undefined or unspecified, the answer is right by chance and earns nothing: another compiler, allocator or input can change it.
The ranked score counts a finding from the language's own linters and compiler warnings as a refusal (1) and a sanitizer report as a debug-build stop (0.25); the Notes tab says how a finding is tied to the bug. Without tools scores the compiler and runtime alone.
A compile error counts as a refusal only if the same program with the bug removed compiles.
N/A: the language lacks a feature the test needs (a mutex, threads, a JSON parser). The test is left out of its score. Prevented by design: the language has the feature and its design rules the error out; 1 point. Unfixable: the error can be made but not fixed; 0.
What each language lacks, and which tests that rules out. Those tests are left out of its score: no penalty, no credit. The leaderboard's Coverage column shows the share of the bench each language can attempt, so a small feature set shows beside a high score.
How BreakBench builds, runs and scores.
The ranked score measures what a team gets from the language and the tools its own project ships: the compiler or interpreter, the runtime, the switches that make either refuse more or stop more (checked arithmetic, debug builds, assertions, strict typing), and the project's linters, warnings and sanitizers, run the way CI runs them. Without tools leaves those out. Third-party checkers count in neither.
Every test can be passed for full marks by some language design: a compiler that refuses the mistake, or a run that ends correctly because the language made the program handle the failure (a check it requires, a stack that grows). A clean stop at run time earns half.
| Language | Build |
|---|---|
| C | debug build, clang -O0 -g |
| C++ | debug build with the standard library's assertions, clang++ -O0 -g -D_GLIBCXX_ASSERTIONS |
| Rust | debug build (overflow checks on) |
| Zig | -O Debug |
| Go | go build |
| Swift | Swift 6 mode, -strict-memory-safety |
| Crystal, Nim, D, V | the default debug build |
| Odin | -debug -vet plus the cast, nil-dereference, uninitialized, using-parameter and atomic-access checks |
| C3 | --validation=strict (obnoxious rejects C3's own standard library) |
| Mojo | -O0 -D ASSERT=all |
| Gossamer | gos build |
| Goose | --debug |
| Java, Scala | assertions on, -ea |
| Kotlin | -progressive, -ea |
| C# | checked arithmetic, nullable checks |
| F# | --checked+, nullness checks |
| Dart | --enable-asserts |
| TypeScript | --strict and every extra check flag |
| JavaScript | "use strict" |
| PHP | assertions on, errors to stderr |
| Julia | --check-bounds=yes |
| Python, Ruby, OCaml, Haskell, Clojure | the default build (dune's development profile for OCaml) |
Each language's own tooling, run on every program that falls short of full marks. A finding counts when it points at the bug's lines (the same rule as a refusal) and the program without the bug does not get it, so a tool that flags everything earns nothing. A linter or compiler warning earns 1: CI that fails on warnings stops the bug before it ships. A sanitizer report earns 0.25, like a stop only the debug build makes; a report that only restates a crash (a signal) does not count. Every finding is read by hand: one about something other than the bug, such as a style lint on a line the fix rewrites, stays in that result's evidence and does not count.
| Language | Tools |
|---|---|
| C, C++ | clang's warnings (-Weverything minus style-only groups), the Clang Static Analyzer, AddressSanitizer with UndefinedBehaviorSanitizer and LeakSanitizer |
| Rust | clippy with the pedantic group |
| Go | go vet, the race detector (-race) |
| Swift, Odin, C3 | AddressSanitizer; the compiler's own warnings |
| D | ldc's warnings (-wi), AddressSanitizer |
| Nim | nim check |
| V | v vet |
| Gossamer | gos lint |
| Java | javac -Xlint:all |
| Kotlin | kotlinc -Wextra |
| Scala | scalac's -W checks |
| C# | the .NET code analyzers (AnalysisMode=All) |
| F#, Crystal, Zig, Mojo, Goose, TypeScript | the compiler's own warnings |
| Dart | dart analyze with the recommended lints and strict casts, inference and raw types |
| Python | mypy (maintained in the Python project's own GitHub organization) with --strict and every optional error code |
| Ruby | ruby -wc |
| Haskell | GHC's -Weverything minus module-metadata warnings |
| OCaml | every compiler warning (-w +a) |
| JavaScript, PHP, Julia, Clojure | none: their projects ship no linter or sanitizer |
Every program marks its bug: BREAK! on a line the fix removes, CONTROL! code on a line the fix puts in. Dropping the one and swapping in the other gives the program without the bug.
lost_write_error: neither can detect the failed write (V discards the error; Mojo aborts on an assertion). Tests with no answer of their own give the fixed program one, such as "missing".Each test covers one mistake, with its CWE, CERT, CVE or pitfall source. Related tests share a failure mode but differ in which check can catch them. missing_argument was removed: it scored like type_confusion in every language.
Every language here scores 0 on these. A language could pass each one; none of these does yet.
Any test whose result changes between runs, in any language, is removed. Three full runs checked this: all 3,720 results matched, and the two tests changed afterwards matched over five more runs under load. Removed, with the languages that varied (20 runs of one build):
concurrent_map_write: unlocked writes to one map. 11 varied: C, C3, C++, Odin (stop or crash); D (hang, wrong answer or stop); Java, Kotlin (hang or wrong answer); Julia (stop or wrong answer); OCaml (stop or hang); F# and Mojo release builds.racy_counter: unlocked increments. C# lost increments in 19 of 20 runs.use_after_close: a write through a freed FILE. C and Nim varied with the allocator's state.hash_matches_equality: equal elements with different hashes. Swift seeds its hash per run: right in 5 of 20.fd_leak: files never closed. Haskell closes handles from a finalizer thread: ran out in 8 of 20.check_then_act and async_reentrancy were removed too: a program checks shared state, gives up control (a lock release or an await), then acts on the stale check. Nothing in the program says the two steps belong together, so no compiler or runtime can catch it, and no language could pass.
Tests that measured a convention rather than a mistake were removed: path_join_escape, split_character, stack_overflow, exit_skips_cleanup, char_arithmetic, huge_allocation, dead_store, unreachable_code and self_deadlock. Each language's behavior there is a legitimate design choice, or the result turned on the input. dead_store and unreachable_code only asked whether a compiler makes a warning an error; self_deadlock gave full marks to re-entrant locks, which many languages leave out on purpose.
Tests that scored like another test were removed: misspelled_field and newtype passed and failed like type_confusion in every language, strong_enum like newtype in 28 of 30, checked_interpolation like misspelled_field wherever it could be written, and stray_semicolon like dangling_else in 27 of 30. word_and_precedence went too: only Ruby and PHP have the operator, so every other language passed it for free.
Races stay tested by lock_order_deadlock and lost_wakeup, which force one interleaving. Gap: bugs that show only on some runs (unsynchronized writes, per-run hash seeds) are not measured.
A right answer counts only where the language defines the behavior. Where it is undefined or unspecified, the program marks the line and a right answer scores 0 as right by chance.
evaluation_order: both standards leave the order of a call's arguments unspecified; clang happens to run them left to right.evaluation_order: V emits one C call holding both arguments, so C's unspecified order applies.container_realloc_dangling: the write through a pointer into the list's old buffer is undefined; the allocator happened to grow the list in place or leave the old buffer unused.Every other right answer in C, C++, Zig, Odin, C3, D, Mojo, Nim, V and Goose rests on defined behavior.
N/A only when the language lacks the construct the mistake needs (a mutex, threads, a map literal, inheritance, interpolation). Otherwise the program is written the way the language allows and scored; a design that rules the mistake out runs correctly. A missing feature never counts as prevention.
The one design marker left is unsafe_deserialization: standard decoders build only the declared type. A language with no standard decoder is N/A there. Kotlin uses kotlinx.coroutines for blocking_in_async.
Each test is one program and one input, written the way the language teaches first. A right answer shows the language handled this program, not every input or idiom. The bench measures classes of mistake through its failure modes instead: each mode holds several tests that make the same kind of mistake in different ways (an overflow in an add, a shift, a subtraction below zero, a parse, a narrow counter), and Details shows each language's result per mode. The safer calls the standard libraries offer are listed below and measured.
A forced unwrap is counted once, in forced_unwrap. Where the language makes the program check a failure (an Option, a Result, an error union, a checked exception, a call marked try), the other tests handle it there instead of forcing the value out or passing the failure out of main, and the handled program runs correctly. A check the language does not require, such as Go's discarded err, stays out.
panic_under_lock fails a worker between two linked updates while it holds a lock. Where the lock guards plain state, the lock opens on the failure and the state stays half-changed (SILENT), unless the failure ends the whole program or poisons the lock (TRAPPED). Clojure and Haskell score CORRECT because their usual shared-state tool is a cell that swaps the new value in only when the update finishes.
Most other languages can do the same, with a standard-library cell or by copying the state, changing the copy and assigning it back by hand. Each program's control variant shows the fix works in that language. The bench keeps one test for this mistake and scores the lock program. This table records what each language's tool does and what its standard library offers instead. It adds no test and changes no score.
| Language | Lock in the test | When the worker fails | Outcome | Cell that avoids it |
|---|---|---|---|---|
| C | pthread_mutex | The worker ends and the lock opens. The counters stay half-changed. | SILENT | None. Copy, change and assign by hand. |
| C3 | Mutex | The panic ends the whole program. | TRAPPED | None. By hand. |
| C# | lock | The lock opens. The counters stay half-changed. | SILENT | Interlocked.CompareExchange over an immutable object. |
| C++ | std::mutex | The uncaught exception ends the whole program. | TRAPPED | std::atomic<std::shared_ptr<T>> (C++20) over an immutable value. |
| Clojure | None: an atom | swap! stores the new value only when the function returns. | CORRECT | The atom in the test. |
| Crystal | Mutex | The lock opens. The counters stay half-changed. | SILENT | Sync::Exclusive(T) holds a value and its mutex. Its docs do not say what a failed block leaves. |
| D | core.sync.mutex | The lock opens. The counters stay half-changed. | SILENT | None. By hand. |
| Dart | None | N/A: no mutex in the language or standard library. | N/A | Not applicable. |
| F# | lock | The lock opens. The counters stay half-changed. | SILENT | Interlocked.CompareExchange over an immutable value. |
| Go | sync.Mutex | The unrecovered panic ends the whole program. | TRAPPED | atomic.Pointer[T] over an immutable value. |
| Goose | None | N/A: no mutex in the language or standard library. | N/A | Not applicable. |
| Gossamer | Mutex around cells | The Mutex is poisoned. The next lock() panics. | TRAPPED | sync::MutexCell (0.86.2+) holds any type. Its update works on a copy and stores it only on success, so a panic leaves the old value and poisons nothing. The test keeps the Mutex using MutexCell would yield correct. |
| Haskell | None: an MVar | modifyMVar_ puts the old value back when the update throws. | CORRECT | The MVar in the test. |
| Java | ReentrantLock | The lock opens. The counters stay half-changed. | SILENT | AtomicReference over an immutable value. |
| JavaScript | None | N/A: no mutex in the language or standard library. | N/A | Not applicable. |
| Julia | ReentrantLock | The lock opens. The counters stay half-changed. | SILENT | None for a struct. Threads.Atomic holds numbers only. |
| Kotlin | ReentrantLock | The lock opens. The counters stay half-changed. | SILENT | Java's AtomicReference over an immutable value. |
| Mojo | BlockingSpinLock | The compiler refuses a raise in a function that does not declare raises. | REJECTED | None. By hand. |
| Nim | Lock | The unhandled exception ends the whole program. | TRAPPED | None. By hand. |
| OCaml | Mutex.protect | The lock opens. The counters stay half-changed. | SILENT | Atomic.compare_and_set over an immutable value. |
| Odin | sync.Mutex | The lock opens. The counters stay half-changed. | SILENT | None. By hand. |
| PHP | None | N/A: no mutex in the language or standard library. | N/A | Not applicable. |
| Python | threading.Lock | The lock opens. The counters stay half-changed. | SILENT | None. By hand. |
| Ruby | Mutex | The lock opens. The counters stay half-changed. | SILENT | None. By hand. |
| Rust | Mutex<T> | The Mutex is poisoned. The next lock().unwrap() panics. | TRAPPED | None. A Mutex<T> already owns its value, and copy, change and assign is by hand. |
| Scala | synchronized | The lock opens. The counters stay half-changed. | SILENT | Java's AtomicReference over an immutable value. |
| Swift | Mutex<Value> | The lock opens. The closure changed the value in place, so it stays half-changed. | SILENT | None. Mutex<Value> already owns its value, and it does not roll back. |
| TypeScript | None | N/A: no mutex in the language or standard library. | N/A | Not applicable. |
| V | sync.Mutex | The panic ends the whole program. | TRAPPED | None. By hand. |
| Zig | std.Io.Mutex | The defer opens the lock. The counters stay half-changed. | SILENT | None. By hand. |
A stop after the result is printed scores as a wrong answer: the wrong value already got out. Examples: Nim empty_max prints 1 before its IndexDefect; unsafe_deserialization, null_byte_path and child_exit_status do harm before any stop.
A run-time stop is rebuilt and rerun the way the language ships. If that build runs past the bug, the stop scores 0.25. The release build is a new project's release profile from the standard build tool, with no extra switches; where the tool makes you choose (Zig, C3), the mode that keeps safety checks; C and C++ use CMake Release. assert_side_effect runs only the release build, because its bug exists only there.
| Language | Release build | What changes |
|---|---|---|
| C | -O3 -DNDEBUG (CMake Release) | Assertions are off. |
| C++ | -O3 -DNDEBUG (CMake Release) | Assertions and the library's bounds checks are off. |
| Rust | -C opt-level=3 (cargo's release profile) | Overflow and shift checks are off; bounds checks stay. |
| Zig | -O ReleaseSafe | Same safety checks. |
| Go | same build | Same checks. |
| Swift | -O | Same overflow and bounds checks. |
| Crystal | --release | Same overflow and bounds checks. |
| D | -O -release | Assertions are off, and bounds checks outside @safe code. |
| Nim | -d:release | Overflow and bounds checks stay; the stack overflow check is off. |
| V | -prod | Same bounds checks. |
| Odin | -o:speed | Bounds checks stay. |
| C3 | -O1 | Same safety checks. |
| Mojo | default build | ASSERT=all is off. |
| Gossamer | gos build --release | Same checks; they hold in every profile. |
| Goose | without --debug, cc -O2 | Arithmetic is unchecked. |
| Java, Kotlin, Scala | run without -ea | Assertions are off. |
| C# | Release, unchecked arithmetic | Overflow wraps silently. |
| F# | Release, without --checked+ | Overflow wraps silently. |
| Dart | dart compile exe | Assertions are off. |
| TypeScript, JavaScript | same build | Same behavior. |
| Python, Ruby | same run | Same behavior. |
| PHP | zend.assertions=-1 | Assertions are off. |
| Julia | default bounds checking | Same checks; no program opts out with @inbounds. |
| OCaml | dune's release profile | Same checks. |
| Clojure | same build | Same checks. |
| Haskell | -O1 | Same checks. |
Allowed: the language and its standard library; libraries the language project itself publishes (Rust regex, Go golang.org/x/text, kotlinx, Haskell aeson); ISO C and POSIX for C and C++; the JVM or .NET class library; every package GHC ships. Not allowed: GNU/BSD extensions, third-party packages, FFI. Each language runs its latest release.
Where a call's documentation sends the situation to another call, the program follows it. Where the docs are silent, the first-taught call stands.
| Language | Test | What the docs say | Path used | The first-taught call would fail |
|---|---|---|---|---|
| Python | unsafe_deserialization | pickle: “json may be more appropriate if you are processing untrusted data” | json.loads | pickle.loads runs the attacker's restore hook |
| Ruby | unsafe_deserialization | Marshal: “If you need to deserialize untrusted data, use JSON” | JSON.parse | Marshal.load runs marshal_load |
| PHP | unsafe_deserialization | unserialize: use JSON via json_decode() | json_decode | unserialize runs __wakeup |
| Java, Kotlin, Scala | unsafe_deserialization | ObjectInputStream: validate untrusted data with serialization filters | An ObjectInputFilter that allows only Session | readObject runs the attacker's restore hook |
| Clojure | unsafe_deserialization | read-string: use clojure.edn for untrusted data | clojure.edn/read-string | read-string evaluates #= forms |
| Python | command_injection | os.system: the subprocess module is recommended | subprocess.run with an argument list | os.system hands the text to a shell, which runs the injected command |
| JavaScript, TypeScript | command_injection | exec: “Never pass unsanitized user input to this function” | execFileSync with an argument list | execSync runs the injected command in a shell |
| Ruby | command_injection | system: not to be called with unsanitized commands | system with separate arguments | One-string system runs the injected command in a shell |
| V | command_injection, short_read, child_exit_status | os.execute: deprecated because command strings allow shell injection; use os.exec | os.exec with an argument list | os.execute runs the injected command in a shell |
| OCaml | short_read | input: see really_input for reading exactly len characters | really_input | input returns half the message |
| PHP | short_read | fread: on pipes reading stops after a packet; collect the data in chunks | stream_get_contents | fread returns half the message |
| JavaScript, TypeScript | json_big_integer | JSON.parse: numbers may lose precision; read context.source | A reviver that reads context.source into a BigInt | JSON.parse rounds the id to 9007199254740992 |
| Java | generator_break_cleanup | BaseStream: “If a stream does require closing, it must be opened as a resource within a try-with-resources statement” | The stream in try-with-resources | A stream with a close handler, never closed |
| C | parse_invalid_number | atoi: use strtol in new programs | strtol with its end-pointer check | atoi reads 12 and prints 13 |
Where the same standard library has a second call for the same job that does better, the job also runs with that call as its own program (<test>.safer.<ext>), built, run and checked like the first. Where that call answers an option or a result, the program handles it to get the value, as with any check the language requires. The ranked score keeps the first-taught call; Details shows the score with these calls. Every language that loses points on one of these tests was checked for such a call; the ones listed have one.
| Language | Test | Path used | Why that path | Safer call | Measured |
|---|---|---|---|---|---|
| Python | child_exit_status | subprocess.run | Taught first; checking is off by default | check=True raises on failure | |
| Ruby | child_exit_status | system | Taught first; returns false on failure | system(..., exception: true) raises | |
| Scala | child_exit_status | ! | Taught first; returns the exit code | !! throws on a non-zero exit | |
| Go | short_read | Reader.Read | The usual read call the test asks for | io.ReadFull | |
| Rust | short_read | Read::read | The usual read call the test asks for | Read::read_exact | |
| Java, Kotlin, Scala, Clojure | short_read | InputStream.read(byte[]) | The usual read call the test asks for | readNBytes | |
| C#, F# | short_read | Stream.Read | The usual read call the test asks for | Stream.ReadExactly | |
| Crystal | short_read | IO#read | The usual read call the test asks for | IO#read_fully | |
| Go | json_big_integer | json.Unmarshal into any | The general value type the test asks for | Decoder.UseNumber | |
| Odin | json_big_integer | json.parse_string | The general value type the test asks for | parse_integers = true | |
| OCaml | not_found_sentinel | String.index | The standard search call, listed first | String.index_opt returns an option | |
| Python | not_found_sentinel | str.find | The standard search call; returns -1 | str.index raises | |
| F# | not_found_sentinel | String.IndexOf | The standard search call; returns -1 | Seq.tryFindIndex returns an option | |
| OCaml | missing_key_default | Hashtbl.find | The map's ordinary lookup the test asks for | Hashtbl.find_opt returns an option | |
| Rust, Gossamer, Haskell, Scala, Crystal | missing_key_default | The index form (map[key], Map.!, map(key)) | The test asks for the index form where one exists | A lookup that returns an option (get, lookup, []?) | |
| Ruby | parse_invalid_number | String#to_i | Taught first; reads the leading digits | Integer(s) raises | |
| V | parse_invalid_number | .int() | Taught first; reads the leading digits | strconv.atoi returns an error | |
| Rust, Gossamer | narrowing_cast | as | The standard conversion | try_from / try_into return a Result | |
| Haskell | narrowing_cast | fromIntegral | The standard conversion; truncates | toIntegralSized returns a Maybe | |
| Swift, Zig | narrowing_cast | UInt8(v), @intCast | The standard conversion; stops on overflow | UInt8(exactly:), std.math.cast return an optional | |
| C#, F#, D | narrowing_cast | The cast ((byte)v, byte v, cast(ubyte)) | The standard conversion; release builds truncate | checked, Checked.byte, to!ubyte throw in every build | |
| F# | null_in_text | $"{name}" | Taught first; untyped | Typed $"%s{name}" refuses an option | |
| Java, Kotlin, Scala | int_overflow | + | The default operator; wraps | Math.addExact throws | |
| Rust, C#, F#, Julia | int_overflow | + | The default operator; stops only in debug builds, or wraps | checked_add, checked, Checked.(+), Base.Checked.checked_add | |
| PHP, Haskell, OCaml, Nim, Crystal, D, C, C++ | command_injection | shell_exec and each language's one-string call | The test asks for the one-string call, and its docs give no warning | An argument list (proc_open with an array, callProcess, Unix.create_process, posix_spawnp, ...) | |
| Go, Java, Kotlin, Scala, Clojure, C#, F#, Crystal, Haskell, Zig, Odin | unflushed_writer | bufio.NewWriter and each language's buffered writer | The test asks for the buffered writer where one is paired with files | A whole-file write (os.WriteFile, Files.writeString, File.WriteAllText, spit, ...) |
Option where the standard library returns one, and the default list and integer types. A shared map uses the standard lock-free update where one exists (Clojure atom, Haskell atomicModifyIORef').reference_cycle, which writes 4 GB, gets 60 s). reference_cycle and lazy_accumulator exceed the cap, so a program that keeps their data runs out of memory: a leak.* on an empty std::optional stops through a libstdc++ assertion.preg_match returns false, which reads as no match.break_in_switch follows the 1990 AT&T long-distance outage. Where match, when or case does not capture break (Rust, Zig, Kotlin, Python, Ruby, Crystal, Nim, V, Goose, Gossamer), the break leaves the loop and the program runs as written; Scala's boundary wraps the loop. Languages with no switch, or no break, are N/A.json_nan makes its NaN as the mean of zero scores. Python and PHP refuse to divide a float by zero, so they stop at the division before the encoder sees a NaN.forgotten_free allocates the way each language teaches: malloc in C, std::make_unique in C++, an allocator's create or new in Zig, Odin and C3, and an ordinary object or value elsewhere.regex_backtracking stops each run at 10 seconds. Dart's engine gives up backtracking after about 20 seconds on any long input and then answers; a 20-second stall per input is the denial of service the test looks for, and every engine that passes answers in under a second.blocking_in_async uses async/await where the standard libraries can run it, otherwise threads; JavaScript has no blocking sleep, so it runs correctly.lock_skipped_on_return unlocks after the conditional and cannot skip it.short_read uses the language's usual process call, so a language whose usual call returns the whole output reads all of it. unflushed_writer is judged by what the file holds after the program exits./tmp/bb_scratch once it exits. Python, Ruby and Julia create the export file with their standard temporary-file type, which deletes itself; the other languages have none that does.main_error_exit_code is judged by the exit status. main takes the shape the language gives a program that can fail: int main in C, C++ and C3, a Result in Rust and Gossamer, an int entry point in F#, and a main an exception can leave elsewhere.blocked_sender_leak uses each language's standard channel at its default size. Zig and C3 make the program choose a size, so they use an unbuffered one, the most common default. Clojure, JavaScript and TypeScript answer through a promise, Haskell through an MVar.break, so generator_break_cleanup takes the first element (take(1), first, Seq.take 1, Seq.head).timeout_without_cancel uses the language's usual wait with a timeout: Python asyncio.wait_for, Kotlin withTimeoutOrNull, Ruby Timeout.timeout, Haskell timeout and Gossamer sync::with_timeout cancel the work they gave up on; the others only stop waiting.heartbeat_overread follows Heartbleed. A slice that stops at the payload's end (Python, Ruby, JavaScript, PHP, Haskell, Scala, Clojure, F#, Gossamer) returns only what was sent, which is safe. Go reslices up to the buffer's capacity and C copies past the payload, so both send the old message. Java's copyOfRange pads with zeros: no leak, but a wrong reply.deep_json_nesting follows CVE-2020-36518. A parser that sets a depth limit and reports it, or parses the text without the call stack, passes; an exception at run time earns half; a blown stack crashes the process, as one request can in a server.signed_byte_index follows CVE-2009-0887 (CERT STR34-C). Where a byte is signed (C and C++ char, Java, Kotlin, Scala, Clojure), the bytes of é index the table at -61 and -87.parallelize.