fix: integrate 14 approved fix PRs (668,671,673,675,678-681,685-690) (#705)
* fix(javascript): preserve array index positions Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): respect object property overwrite order Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * test(javascript): cover uncertain spread discriminants Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): keep nonfinite values outside JSON lattice Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): keep non-CIL method implementations unknown Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * test(package): separate CIL reconstruction from native imports Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): invalidate values on nontrivial binding writes Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(artifacts): align native DMG mount and detach lifecycle Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): retain all literal worker import arguments Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(native): preserve final demangled symbol whitespace Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): preserve C identifier underscores in native matching Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): respect metadata key and overwrite semantics Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(javascript): keep optional parameter input unknown Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(dotnet): report observed method metadata changes Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * docs(dotnet): synchronize generated conformance skill digest Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(browser): reject malformed indexed source-map offsets Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * fix(native): preserve numeric-looking Mach-O identifiers Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> * docs: regenerate catalogs for integrated fix batch * docs: regenerate catalogs after merging main (#702) --------- Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com> Co-authored-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,42 @@ import { inspectManagedMembersBytes } from "../../../../src/dotnet/ManagedMember
|
||||
import { managedPeFixtureTarget } from "../../../../src/dotnet/ManagedPe.fixture.js";
|
||||
import { buildManagedPeFixture } from "../../../../src/dotnet/ManagedPe.fixture.js";
|
||||
|
||||
it.each([
|
||||
["accessibility", 6, 0x0011],
|
||||
["synchronized implementation", 4, 0x0020],
|
||||
])(
|
||||
"reports changed observed method %s despite identical CIL",
|
||||
async (_name, flagOffset, flags) => {
|
||||
const directory = await createTestTempDirectory("rea-managed-flags-");
|
||||
const leftPath = join(directory, "left.dll");
|
||||
const rightPath = join(directory, "right.dll");
|
||||
const left = buildManagedPeFixture();
|
||||
const inspection = inspectManagedMembersBytes(
|
||||
left,
|
||||
managedPeFixtureTarget(left, leftPath),
|
||||
);
|
||||
const method = inspection.methods[0];
|
||||
if (method === undefined) throw new Error("missing method fixture");
|
||||
const right = Buffer.from(left);
|
||||
right.writeUInt16LE(flags, method.row_offset + flagOffset);
|
||||
await writeFile(leftPath, left);
|
||||
await writeFile(rightPath, right);
|
||||
const result = await compareManagedMemberPaths({ leftPath, rightPath });
|
||||
expect(result.ok).toBe(true);
|
||||
if (!result.ok) return;
|
||||
const comparison = managedMemberComparisonResultSchema.parse(
|
||||
result.value.normalized_result,
|
||||
);
|
||||
expect(comparison.methods[0]).toMatchObject({
|
||||
status: "changed",
|
||||
dimensions: ["metadata"],
|
||||
});
|
||||
expect(comparison.methods[0]?.left?.normalized_il_sha256).toBe(
|
||||
comparison.methods[0]?.right?.normalized_il_sha256,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
describe("managed member comparison path workflow", () => {
|
||||
it("preserves undecoded signatures as unknown through content-addressed partial Evidence", () => {
|
||||
const observe = (signature: number, path: string) => {
|
||||
|
||||
Reference in New Issue
Block a user