[openssl/openssl] f54e4b: Fix line continuation check in config parser
Tobias Erbsland
noreply at github.com
Tue Jul 16 19:34:57 UTC 2024
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: f54e4bc51b78c10dc99a61c087861ee2c11d7a41
https://github.com/openssl/openssl/commit/f54e4bc51b78c10dc99a61c087861ee2c11d7a41
Author: erbsland-dev <github at erbsland.dev>
Date: 2024-07-16 (Tue, 16 Jul 2024)
Changed paths:
M crypto/conf/conf_def.c
Log Message:
-----------
Fix line continuation check in config parser
Fixes #8038: Previously, line continuation logic did not account for the 'again' flag, which could cause incorrect removal of a backslash character in the middle of a line. This fix ensures that line continuation is correctly handled only when 'again' is false, thus improving the reliability of the configuration parser.
Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24890)
Commit: 2dd74d3acb9425251a2028504f07623bd97bfe87
https://github.com/openssl/openssl/commit/2dd74d3acb9425251a2028504f07623bd97bfe87
Author: erbsland-dev <github at erbsland.dev>
Date: 2024-07-16 (Tue, 16 Jul 2024)
Changed paths:
M test/recipes/04-test_conf.t
A test/recipes/04-test_conf_data/oversized_line.cnf
A test/recipes/04-test_conf_data/oversized_line.txt
Log Message:
-----------
Add tests for long configuration lines with backslashes
Introduce new test files to verify behavior with config lines longer than 512 characters containing backslashes. Updated test plan to include these new test scenarios.
Reviewed-by: Neil Horman <nhorman at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24890)
Compare: https://github.com/openssl/openssl/compare/f692ceeedcd1...2dd74d3acb94
To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
More information about the openssl-commits
mailing list