Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
tpm2.0-tools.19833
fix_bad_bufsize.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_bad_bufsize.patch of Package tpm2.0-tools.19833
Index: tpm2-tools-4.1/tools/tpm2_policytemplate.c =================================================================== --- tpm2-tools-4.1.orig/tools/tpm2_policytemplate.c +++ tpm2-tools-4.1/tools/tpm2_policytemplate.c @@ -23,7 +23,7 @@ static tpm2_policytemplate_ctx ctx; static bool process_input_template_hash(char *value) { - ctx.template_hash.size = UINT16_MAX; + ctx.template_hash.size = sizeof(ctx.template_hash.buffer); bool result = files_load_bytes_from_buffer_or_file_or_stdin(NULL, value, &ctx.template_hash.size, ctx.template_hash.buffer); if (!result) { Index: tpm2-tools-4.1/tools/tpm2_policynamehash.c =================================================================== --- tpm2-tools-4.1.orig/tools/tpm2_policynamehash.c +++ tpm2-tools-4.1/tools/tpm2_policynamehash.c @@ -23,7 +23,7 @@ static tpm2_policynamehash_ctx ctx; static bool process_input_name_hash(char *value) { - ctx.name_hash.size = UINT16_MAX; + ctx.name_hash.size = sizeof(ctx.name_hash.buffer); bool result = files_load_bytes_from_buffer_or_file_or_stdin(NULL, value, &ctx.name_hash.size, ctx.name_hash.buffer); if (!result) {
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