- A conversion operator in a local scope is named after the type it returns
('Obj::operator int'), so two conversions of one class no longer collapse.
- A pointer or reference to a function pointer or to an array goes inside the
declarator's brackets: 'void (**)(int)', not 'void (*)(int) *'.
- An array with a negative dimension count or size is not read; the name is
returned mangled.
- A string that ends with one '@' counts as a type descriptor only when its
outermost scope is a function ('...Z@', '..._E@') or a back-reference; a
plain name followed by a lone '@' is not counted.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
simple_name split the mangled name on '@', so a template's arguments came out
as namespaces ('.?AV?$Pool@H@mem@@' was reported as 'mem::H::?$Pool'), and a
back-reference digit or an anonymous namespace as a scope name. It now reads
the name: scopes, templates and their arguments, back-references, anonymous
namespaces and classes local to a function. A form it does not read (a pointer
to a member, an address as a template argument) is reported mangled, unchanged,
instead of as a made-up scope chain.
The type-descriptor pattern also required the name to end with '@@'. A class
declared inside a function ends with that function's 'Z@', so its descriptor,
the class and its vtables were not found at all. Union descriptors ('.?AT')
are matched too.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The --out option could replace the PE being analyzed with JSON. Reject identical paths and hard links before scanning, and cover both refusal and separate-output success with synthetic CLI tests.
Raw padding beyond a section's virtual size can contain executable-looking pointers. Bound slot scanning to the section holding the vtable and cover both sides of that boundary with a synthetic PE.
NamedTemporaryFile creates its file 0600, so a new report lost the umask
default (0644 under umask 022) and a replaced 0640 report lost group read
(found by @VictorJulianiR on Ubuntu). The temp file now gets the old report's
mode, or 0666 minus the umask for a new report, before os.replace.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups to review points on three merged PRs.
#658 (@VictorJulianiR): rtti_scan.py opened the report in place, so a write
that failed after the open (full disk, locked range) left a 0-byte file and
the previous report was gone. The report is now written to a temp file next to
it and swapped in with os.replace; on failure the temp file is removed.
#627 (@Caasares): three subnormal cases pinned the translator's result as if
it were RDNA2's. v_mad_f32, v_mac_f32 and v_mad_legacy_f32 flush f32
denormals on RDNA2 (LLVM SIISelLowering.cpp, isFMADLegal). They move to
DenormalDivergenceTests, which pins the translator result and records the RDNA2
one; docs/design.md lists the flush as not modelled. No translator change.
#645 (@esteban-dcp): crosslane_fuzz.py still called permlane FI=0
unmeasured; comments now point at the measurement and at #580.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The report was written outside the try that turns read and scan errors
into one ERROR line, so an --out in a missing folder (or the default
<image>.rtti.json next to a read-only image) ended in a traceback after
the whole scan. It now prints ERROR: <path>: <reason> and exits 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>