Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
opensc.29262
opensc-0_13_0-CVE-2019-15945.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensc-0_13_0-CVE-2019-15945.patch of Package opensc.29262
Index: opensc-0.13.0/src/libopensc/asn1.c =================================================================== --- opensc-0.13.0.orig/src/libopensc/asn1.c +++ opensc-0.13.0/src/libopensc/asn1.c @@ -431,16 +431,21 @@ static int decode_bit_string(const u8 * { const u8 *in = inbuf; u8 *out = (u8 *) outbuf; - int zero_bits = *in & 0x07; - size_t octets_left = inlen - 1; int i, count = 0; + int zero_bits; + size_t octets_left; + + zero_bits = *in & 0x07; + octets_left = inlen - 1; - memset(outbuf, 0, outlen); - in++; if (outlen < octets_left) return SC_ERROR_BUFFER_TOO_SMALL; if (inlen < 1) return SC_ERROR_INVALID_ASN1_OBJECT; + + in++; + memset(outbuf, 0, outlen); + while (octets_left) { /* 1st octet of input: ABCDEFGH, where A is the MSB */ /* 1st octet of output: HGFEDCBA, where A is the LSB */
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