Skip to content

fix: handling of larger asdf info outputs#197

Merged
embray merged 1 commit into
asdf-format:mainfrom
embray:issue-191
Jun 8, 2026
Merged

fix: handling of larger asdf info outputs#197
embray merged 1 commit into
asdf-format:mainfrom
embray:issue-191

Conversation

@embray

@embray embray commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Came up in the case of reading a Roman L2 ASDF file (gh-191) but is not specific to it. Fixes two issues:

  • Truncate long scalar values in the output
  • Double free / dangling pointers on the active_levels array; this array is meant to be reused by all node levels (it just tracks when printing a line which levels of indent should have a vertical pipe drawn) but if it gets resized during tree traversal the resized active_levels pointer was left dangling on previous node levels; this ensures that they are all sharing the same reference to a node_indent_t structure.

Resolves #191

Came up in the case of reading a Roman L2 ASDF file (asdf-formatgh-191) but is not
specific to it.  Fixes two issues:

- Truncate long scalar values in the output
- Double free / dangling pointers on the `active_levels` array; this
  array is meant to be reused by all node levels (it just tracks when
  printing a line which levels of indent should have a vertical pipe
  drawn) but if it gets resized during tree traversal the resized
  active_levels pointer was left dangling on previous node levels; this
  ensures that they are all sharing the same reference to a
  node_indent_t structure.
@embray embray merged commit cc3e377 into asdf-format:main Jun 8, 2026
12 checks passed
@embray embray added the bug Something isn't working label Jun 8, 2026
@embray embray deleted the issue-191 branch June 8, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asdf info broken on Roman L2 files

1 participant