[openssl/openssl] 7b9bb4: Fix line continuation check in config parser

Tobias Erbsland noreply at github.com
Tue Jul 16 19:34:58 UTC 2024


  Branch: refs/heads/openssl-3.3
  Home:   https://github.com/openssl/openssl
  Commit: 7b9bb42e5c7f13c54d3f92ac24e13b71e4cd4559
      https://github.com/openssl/openssl/commit/7b9bb42e5c7f13c54d3f92ac24e13b71e4cd4559
  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)

(cherry picked from commit f54e4bc51b78c10dc99a61c087861ee2c11d7a41)


  Commit: 5c3227e94e84ec4a6a3c033d27207024cb814e02
      https://github.com/openssl/openssl/commit/5c3227e94e84ec4a6a3c033d27207024cb814e02
  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)

(cherry picked from commit 2dd74d3acb9425251a2028504f07623bd97bfe87)


Compare: https://github.com/openssl/openssl/compare/dc47b27672d3...5c3227e94e84

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