Skip to content

fix(driver): separate embedded env-var pairs with a record separator#11

Open
jakobjung10 wants to merge 1 commit into
zalanlevai:mainfrom
jakobjung10:fix/encoded-args-delimiter
Open

fix(driver): separate embedded env-var pairs with a record separator#11
jakobjung10 wants to merge 1 commit into
zalanlevai:mainfrom
jakobjung10:fix/encoded-args-delimiter

Conversation

@jakobjung10

Copy link
Copy Markdown

The external-mutant env-var table joined every key and value with a single \x1F separator and decoded it with array_chunks::<2>. Some values, such as MUTEST_ENCODED_ARGS, themselves contain \x1F, which misaligned the key/value pairing and could restore the wrong variables.

Separate pairs with \x1E and keep \x1F only between a key and its value, decoding with split_once. Drop the now-unused iter_array_chunks feature.

The external-mutant env-var table joined every key and value with a single
`\x1F` separator and decoded it with `array_chunks::<2>`. Some values, such
as `MUTEST_ENCODED_ARGS`, themselves contain `\x1F`, which misaligned the
key/value pairing and could restore the wrong variables.

Separate pairs with `\x1E` and keep `\x1F` only between a key and its value,
decoding with `split_once`. Drop the now-unused `iter_array_chunks` feature.
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