Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
openssl-3.28534
openssl-CVE-2023-0401-2of2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-CVE-2023-0401-2of2.patch of Package openssl-3.28534
commit c0c265114e57b7cc394090ff3bbf762f65793e50 Author: Tomas Mraz <tomas@openssl.org> Date: Wed Jan 18 17:07:24 2023 +0100 Add testcase for missing return check of BIO_set_md() calls Index: openssl-3.0.1/test/recipes/80-test_cms.t =================================================================== --- openssl-3.0.1.orig/test/recipes/80-test_cms.t +++ openssl-3.0.1/test/recipes/80-test_cms.t @@ -13,7 +13,7 @@ use warnings; use POSIX; use File::Spec::Functions qw/catfile/; use File::Compare qw/compare_text compare/; -use OpenSSL::Test qw/:DEFAULT srctop_dir srctop_file bldtop_dir bldtop_file with/; +use OpenSSL::Test qw/:DEFAULT srctop_dir srctop_file bldtop_dir bldtop_file with data_file/; use OpenSSL::Test::Utils; @@ -50,7 +50,7 @@ my ($no_des, $no_dh, $no_dsa, $no_ec, $n $no_rc2 = 1 if disabled("legacy"); -plan tests => 13; +plan tests => 14; ok(run(test(["pkcs7_test"])), "test pkcs7"); @@ -847,6 +847,17 @@ subtest "CMS binary input tests\n" => su "verify binary input with -binary missing -crlfeol"); }; +# Test case for missing MD algorithm (must not segfault) + +with({ exit_checker => sub { return shift == 4; } }, + sub { + ok(run(app(['openssl', 'smime', '-verify', '-noverify', + '-inform', 'PEM', + '-in', data_file("pkcs7-md4.pem"), + ])), + "Check failure of EVP_DigestInit is handled correctly"); + }); + sub check_availability { my $tnam = shift; Index: openssl-3.0.1/test/recipes/80-test_cms_data/pkcs7-md4.pem =================================================================== --- /dev/null +++ openssl-3.0.1/test/recipes/80-test_cms_data/pkcs7-md4.pem @@ -0,0 +1,32 @@ +-----BEGIN PKCS7----- +MIIFhAYJKoZIhvcNAQcCoIIFdTCCBXECAQExDjAMBggqhkiG9w0CBAUAMB0GC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wN3RE0Ofa4rI5PESogQsd/DgBc7dcDO3yoPKGjycR3/GJDqqCxC +e9dr6FJEnDjaDf9zNWyTFHExggITMIICDwIBATASMA0xCzAJBgNVBAMMAkNBAgEC +MAwGCCqGSIb3DQIEBQCggdQwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkq +hkiG9w0BCQUxDxcNMjMwMTE4MTU0NzExWjAfBgkqhkiG9w0BCQQxEgQQRXO4TKpp +RgA4XHb8bD1pczB5BgkqhkiG9w0BCQ8xbDBqMAsGCWCGSAFlAwQBKjALBglghkgB +ZQMEARYwCwYJYIZIAWUDBAECMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDAN +BggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDANBgkqhkiG9w0B +AQEFAASCAQAe+xlm/TGg/s/7b0xBc3FFnmmUDEe7ljkehIx61OnBV9ZWA+LcBX/7 +kmMSMdaHjRq4w8FmwBMLzn0ttXVqf0QuPbBF/E6X5EqK9lpOdkUQhNiN2v+ZfY6c +lrH4ADsSD9D+UHw0sxo5KEF+PPuneUfYCJZosFUJosBbuSEXK0C9yfJoDKVE8Syp +0vdqh73ogLeNgZLAUGSSB66OmHDxwgAj4qPAv6FHFBy1Xs4uFZER5vniYrH9OrAk +Z6XdvzDoYZC4XcGMDtcOpOM6D4owqy5svHPDw8wIlM4GVhrTw7CQmuBz5uRNnf6a +ZK3jZIxG1hr/INaNWheHoPIhPblYaVc6 +-----END PKCS7-----
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor