Repository navigation
Conversation
[AUTOMATED] An imported operator delete[] printed with no argument: Itanium mangling encodes no return type, cppsig refuses operator names, and no table listed _Znwm, _ZdlPv and the rest. The built-in libc table now lists the 32 global allocation and deallocation functions by their mangled names: new and new[] take a size_t and return void *, delete and delete[] take the pointer and perhaps the size, each also with std::nothrow_t and std::align_val_t, in the m and j size_t spellings. A unit test pins the signatures. cxx_allocation_operators decompiles a new cxx_alloc_x86_64 fixture, whose operators are PLT imports, and requires drop_array's delete[] to keep its pointer.
[AUTOMATED] MinGW-w64 x64 mangles size_t as y (unsigned long long), so _Znwy, _ZdlPvy and their aligned and nothrow forms join the table, for 44 entries. The unit test derives each operator's signature from its mangled name and checks every entry, and that no name is listed twice. The CLI test also checks drop_array's own signature.
[AUTOMATED] The previous commit's rewrite of the operator block deleted the three entries between it and the ptrace comment. The block now follows memset, so the change only adds entries.
…ototypes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
The new table rows lock operator new/delete's parameters. On an i386 PE the default model is __stdcall with an unknown extrapop, so a locked one-argument operator was read as popping its own argument, and in a GCC fixed frame every later [esp+k] moved by 4: calls after operator new[] took the wrong locals and a caller grew a phantom parameter. LibProtoPass now reports every operator name the image imports or defines alongside the C runtime imports, and the commit boundary declares them __cdecl. Inert wherever the default model states its extrapop (x86-64, every ELF, every RISC spec). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
…ment both fixtures tests/stages/kuna-cxxalloc.xml decompiles the x86-64 fixture's drop_array (operator delete[](a0)) and a clean-room i386 PE, cxx_alloc_pe_i386.exe (nasm, from cxx_alloc_pe_i386.asm), whose GCC fixed frame imports _Znwj, _Znaj, _ZdlPvj and _ZdaPv from libstdc++-6.dll; it pins every argument there. The fixtures README gets a row with the build line and SHA-256 for each fixture, and the table's comment block becomes a one-line section label (the spec carries the explanation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
…ototypes Stage corpus count 901 (main's kuna-calloverlap-floatret plus kuna-cxxalloc); docs/baseline-stages.json is main's 5290 assertions plus the 9 CXXALLOC ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
Contributor
|
[AUTOMATED] Pushed three commits on top of your branch (no force-push):
|
[AUTOMATED] The corpus count is upstream's 908 plus this branch's stage test, 909, and the stages baseline is upstream's with this branch's nine CXXALLOC assertions added.
[AUTOMATED] The corpus count is upstream's 909 plus this branch's stage test, 910, and the stages baseline is upstream's with this branch's nine CXXALLOC assertions added.
[AUTOMATED] The corpus count is upstream's plus this branch's stage test, and the stages baseline is upstream's with this branch's nine CXXALLOC assertions added.
[AUTOMATED] The stage corpus count is main's 913 plus kuna-cxxalloc, 914. The stages baseline is main's plus this branch's 9 CXXALLOC assertions (neither side removed one): 5379.
[AUTOMATED] The stage corpus count is main's 917 plus kuna-cxxalloc, 918. The stages baseline is main's 5419 assertions plus this branch's 9 CXXALLOC ones; main's armshiftguard change replaced 10 ARM shift assertions, which this branch does not touch.
[AUTOMATED] The stage corpus count is main's 922 plus kuna-cxxalloc, 923. The stages baseline is main's 5441 assertions plus this branch's 9 CXXALLOC ones (neither side removed one): 5450.
[AUTOMATED] The stage corpus count is main's 926 plus kuna-cxxalloc, 927; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's 927 plus kuna-cxxalloc, 928; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
[AUTOMATED] The stage corpus count is main's plus kuna-cxxalloc; the stages baseline is main's plus this branch's 9 CXXALLOC assertions.
This branch has not been deployed
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.
An imported C++
operator deleteprints with no argument. No prototype table lists the Itanium allocation operators, andcppsigrefuses operator names.newandnew[]take asize_tand returnvoid *;deleteanddelete[]take the pointer, and perhaps the size;std::nothrow_t const &andstd::align_val_t;m,jandy(MinGW-w64)size_tspellings.cppsigcouldn't givenewits result even if it accepted the names.Tests.
the_cxx_allocation_operators_take_and_return_what_the_abi_saysderives each operator's signature from its mangled name and checks every entry.cxx_allocation_operatorsdecompiles the newcxx_alloc_x86_64fixture, whose operators are PLT imports, and requiresoperator delete[](a0). It fails on the current tree.Model:
anthropic/claude-opus-5-5