Skip to content

fix: copy result attribtues when extracting single ops from secret.generic#2811

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_889323354
Open

fix: copy result attribtues when extracting single ops from secret.generic#2811
copybara-service[bot] wants to merge 1 commit intomainfrom
test_889323354

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

@copybara-service copybara-service bot commented Mar 25, 2026

fix: copy result attribtues when extracting single ops from secret.generic

When canonicalizing, secret.generic ops are hoisted when they are fully plaintext. But this doesn't copy the attributes of the op onto the new hoisted generic's result attrs, and then those aren't copied to the old generic's new input.

This results in a segfault when running in debug mode, due to a segfault in printing secret.generic arg attributes (that expect the arg attr dict to have arg attrs for each i in the arg list).

@copybara-service copybara-service bot force-pushed the test_889323354 branch 2 times, most recently from 5fc0286 to 7a01a42 Compare March 26, 2026 15:30
…neric

When canonicalizing, secret.generic ops are hoisted when they are fully plaintext. But this doesn't copy the attributes of the op onto the new hoisted generic's result attrs, and then those aren't copied to the old generic's new input.

This results in a segfault when running in debug mode, due to a segfault in printing secret.generic arg attributes (that expect the arg attr dict to have arg attrs for each i in the arg list).

PiperOrigin-RevId: 889323354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant