Skip to content

A14-09: expected_mi.cpp: non-portable __attribute__((constructor)) + unguarded l2factorial table index (currently unreachable) #105

Description

@ms609

src/expected_mi.cpp:13,22-27__attribute__((constructor)) is GCC/Clang-only, not portable to MSVC (relevant given this project builds on Windows via MinGW, where it happens to work, but is not a documented cross-compiler guarantee). l2factorial(n) has no n < 0 guard on log2_factorial_table[n] — currently unreachable only because kmin > kmax short-circuits at :77 before any negative index is possible.

Verified REAL (haiku verifier, code-read).

Filed by /red-team area 14 (opus finder, 2026-08-05).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:14Red-team focus area 14in-progressBeing fixed; claiming comment names the branchred-teamFiled by the /red-team rotationsev:lowP3: robustness / polish

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions