/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
H A D | CVE-2019-7574.patch | 4 # Mon Jun 10 08:50:59 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7574: Fix a buffer overread in IMA_ADPCM_decode 13 CVE-2019-7574 16 Signed-off-by: Petr Písař <ppisar@redhat.com> 18 CVE: CVE-2019-7574 19 Upstream-Status: Backport 20 Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 22 diff -r 388987dff7bf -r a6e3d2f5183e src/audio/SDL_wave.c 23 --- a/src/audio/SDL_wave.c Sat Jun 08 18:02:09 2019 -0700 [all …]
|
H A D | CVE-2019-7577.patch | 4 # Mon Jun 10 08:54:11 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7577: Fix a buffer overread in MS_ADPCM_decode 16 CVE-2019-7577 19 Signed-off-by: Petr Písař <ppisar@redhat.com> 24 # Mon Jun 10 08:54:29 2019 -0700 25 # Branch SDL-1.2 28 CVE-2019-7577: Fix a buffer overread in MS_ADPCM_nibble and MS_ADPCM_decode 41 CVE-2019-7577 44 Signed-off-by: Petr Písař <ppisar@redhat.com> [all …]
|
H A D | CVE-2019-7575.patch | 4 # Mon Jun 10 09:25:05 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7575: Fix a buffer overwrite in MS_ADPCM_decode 16 CVE-2019-7575 18 Signed-off-by: Petr Písař <ppisar@redhat.com> 20 CVE: CVE-2019-7575 21 Upstream-Status: Backport 22 Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 24 diff -r fcbecae42795 -r a936f9bd3e38 src/audio/SDL_wave.c 25 --- a/src/audio/SDL_wave.c Mon Jun 10 09:06:23 2019 -0700 [all …]
|
H A D | CVE-2019-7572.patch | 4 # Mon Jun 10 08:57:11 2019 -0700 5 # Branch SDL-1.2 8 CVE-2019-7572: Fix a buffer overwrite in IMA_ADPCM_decode 16 CVE-2019-7572 19 Signed-off-by: Petr Písař <ppisar@redhat.com> 24 # Sat Jun 08 17:57:43 2019 -0700 25 # Branch SDL-1.2 28 CVE-2019-7572: Fix a buffer overread in IMA_ADPCM_nibble 37 CVE-2019-7572 40 Signed-off-by: Petr Písař <ppisar@redhat.com> [all …]
|
/openbmc/libcper/sections/ |
H A D | cper-section-dmar-iommu.c | 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-dmar-iommu.h> 43 json_object_new_int(iommu_error->Revision)); in cper_section_dmar_iommu_to_ir() 47 json_object_new_uint64(iommu_error->Control)); in cper_section_dmar_iommu_to_ir() 49 json_object_new_uint64(iommu_error->Status)); in cper_section_dmar_iommu_to_ir() 55 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() local 57 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 63 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 65 free(encoded); in cper_section_dmar_iommu_to_ir() 70 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() [all …]
|
H A D | cper-section-dmar-vtd.c | 2 * Describes functions for converting VT-d specific DMAr CPER sections from binary and JSON format 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-dmar-vtd.h> 17 //Converts a single VT-d specific DMAr CPER section into JSON IR. 24 "A VT-d DMAr Error occurred"); in cper_section_dmar_vtd_to_ir() 27 "Error: Could not write to VT-d DMAr description string\n"); in cper_section_dmar_vtd_to_ir() 30 "Error: VT-d DMAr description string truncated\n"); in cper_section_dmar_vtd_to_ir() 41 //Version, revision and OEM ID, as defined in the VT-d architecture. in cper_section_dmar_vtd_to_ir() 44 oem_id |= (UINT64)vtd_error->OemId[i] << (i * 8); in cper_section_dmar_vtd_to_ir() 47 json_object_new_int(vtd_error->Version)); in cper_section_dmar_vtd_to_ir() [all …]
|
H A D | cper-section-cxl-protocol.c | 11 #include <libcper/cper-utils.h> 12 #include <libcper/sections/cper-section-cxl-protocol.h> 40 cxl_protocol_error->CxlDvsecLength + in cper_section_cxl_protocol_to_ir() 41 cxl_protocol_error->CxlErrorLogLength) { in cper_section_cxl_protocol_to_ir() 47 UINT_64T, .value.ui64 = cxl_protocol_error->ValidBits in cper_section_cxl_protocol_to_ir() 53 cxl_protocol_error->CxlAgentType, 2, in cper_section_cxl_protocol_to_ir() 62 if (cxl_protocol_error->CxlAgentType == in cper_section_cxl_protocol_to_ir() 69 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 74 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() 79 cxl_protocol_error->CxlAgentAddress in cper_section_cxl_protocol_to_ir() [all …]
|
H A D | cper-section-ccix-per.c | 12 #include <libcper/cper-utils.h> 13 #include <libcper/sections/cper-section-ccix-per.h> 39 if (size < ccix_error->Length) { in cper_section_ccix_per_to_ir() 45 .value.ui64 = ccix_error->ValidBits }; in cper_section_ccix_per_to_ir() 49 json_object_new_uint64(ccix_error->Length)); in cper_section_ccix_per_to_ir() 55 json_object_new_int(ccix_error->CcixSourceId)); in cper_section_ccix_per_to_ir() 60 json_object_new_int(ccix_error->CcixPortId)); in cper_section_ccix_per_to_ir() 68 ccix_error->Length - sizeof(EFI_CCIX_PER_LOG_DATA); in cper_section_ccix_per_to_ir() 72 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local 75 if (encoded == NULL) { in cper_section_ccix_per_to_ir() [all …]
|
H A D | cper-section-cxl-component.c | 11 #include <libcper/cper-utils.h> 12 #include <libcper/sections/cper-section-cxl-component.h> 38 if (cxl_error->Length < sizeof(EFI_CXL_COMPONENT_EVENT_HEADER)) { in cper_section_cxl_component_to_ir() 41 if (size < cxl_error->Length) { in cper_section_cxl_component_to_ir() 48 json_object_new_uint64(cxl_error->Length)); in cper_section_cxl_component_to_ir() 52 .value.ui64 = cxl_error->ValidBits }; in cper_section_cxl_component_to_ir() 59 json_object_new_int(cxl_error->DeviceId.VendorId)); in cper_section_cxl_component_to_ir() 62 json_object_new_int(cxl_error->DeviceId.DeviceId)); in cper_section_cxl_component_to_ir() 66 cxl_error->DeviceId.FunctionNumber)); in cper_section_cxl_component_to_ir() 69 json_object_new_int(cxl_error->DeviceId.DeviceNumber)); in cper_section_cxl_component_to_ir() [all …]
|
/openbmc/bmcweb/test/http/ |
H A D | utility_test.cpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 36 EXPECT_TRUE(base64Decode<true>("-_abcde", result)); in TEST() 50 std::string encoded; in TEST() local 52 encoded = base64encode(""); in TEST() 53 EXPECT_EQ(encoded, ""); in TEST() 55 encoded = base64encode("f"); in TEST() 56 EXPECT_EQ(encoded, "Zg=="); in TEST() 58 encoded = base64encode("f0"); in TEST() 59 EXPECT_EQ(encoded, "ZjA="); in TEST() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/audiofile/files/ |
H A D | 0005-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch | 8 and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-decodesample-ima-cp… 10 Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 12 CVE: CVE-2017-6829 13 Upstream-Status: Inactive-Upstream [lastrelease: 2013] 14 Signed-off-by: Peter Marko <peter.marko@siemens.com> 15 --- 16 libaudiofile/modules/IMA.cpp | 4 ++-- 17 1 file changed, 2 insertions(+), 2 deletions(-) 19 diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp 21 --- a/libaudiofile/modules/IMA.cpp [all …]
|
/openbmc/qemu/crypto/ |
H A D | der.h | 30 /* Simple decoder used to parse DER encoded rsa keys. */ 34 * @value: the starting address of |value| part of 'Tag-Length-Value' pattern. 49 * Decode integer from DER-encoded data. 54 * part of the decoded INTEGER will be returned. Otherwise, -1 is 65 * Decode sequence from DER-encoded data, similar with der_decode_int. 76 * part of the decoded SEQUENCE will be returned. Otherwise, -1 is 88 * Decode OID from DER-encoded data, similar with der_decode_int. 99 * part of the decoded OID will be returned. Otherwise, -1 is 111 * Decode OCTET STRING from DER-encoded data, similar with der_decode_int. 122 * part of the decoded OCTET STRING will be returned. Otherwise, -1 is [all …]
|
H A D | rsakey.h | 25 #include "qemu/host-utils.h" 32 * Multiple precious integer, encoded as two' complement, 33 * copied directly from DER encoded ASN.1 structures. 61 * Parse DER encoded ASN.1 RSA keys, expected ASN.1 schemas:
|
/openbmc/libbej/src/ |
H A D | bej_common.c | 16 // represent the value in little-endian format. in bejGetNnint() 30 if (val == 0 || val == -1) in bejIntLengthOfValue() 36 uint8_t byteIndex = sizeof(uint64_t) - 1; in bejIntLengthOfValue() 44 byteLength--; in bejIntLengthOfValue() 45 byteIndex--; in bejIntLengthOfValue() 49 // If the value is positive and encoded MSBbit is 1 we need to add 0x00 to in bejIntLengthOfValue() 50 // the encoded value as padding. in bejIntLengthOfValue() 56 // If the value is negative and encoded MSBbit is 0 we need to add 0xFF to in bejIntLengthOfValue() 57 // the encoded value as padding. in bejIntLengthOfValue() 81 // From the size of the encoded value, we need 1 byte for the length field. in bejNnintLengthFieldOfUInt() [all …]
|
H A D | bej_encoder_core.c | 17 RETURN_IF_IERROR(output->recvOutput(&nnintLengthByte, sizeof(uint8_t), in bejEncodeNnint() 18 output->handlerContext)); in bejEncodeNnint() 20 return output->recvOutput(&value, nnintLengthByte, output->handlerContext); in bejEncodeNnint() 29 return output->recvOutput(format, sizeof(struct BejTupleF), in bejEncodeFormat() 30 output->handlerContext); in bejEncodeFormat() 40 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.sequenceNumber, output)); in bejEncodeBejSetOrArray() 42 RETURN_IF_IERROR(bejEncodeFormat(&node->nodeAttr.format, output)); in bejEncodeBejSetOrArray() 44 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.vSize, output)); in bejEncodeBejSetOrArray() 46 return bejEncodeNnint(node->nChildren, output); in bejEncodeBejSetOrArray() 56 return output->recvOutput(&val, copyLength, output->handlerContext); in bejEncodeInteger() [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 7 "logical"/para-virtual resources like memory, CPUs, and "physical" 8 host-bridges, which are generally managed by the host/hypervisor and provided 14 Dynamic-reconfiguration Connectors 26 the name/index/power-domain/type of each DRC allocated to a guest at 33 for hot plugged resources described under :ref:`guest-host-interface`. 37 of ``ibm,drc-indexes``: 39 ``ibm,drc-names`` 40 ----------------- 42 First 4-bytes: big-endian (BE) encoded integer denoting the number of entries. 44 Each entry: a NULL-terminated ``<name>`` string encoded as a byte array. [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Attestation/ |
H A D | MeasurementSet.interface.yaml | 5 - name: SPDMGetSignedMeasurements 11 - name: MeasurementIndices 17 - name: Nonce 20 A 32-byte hex-encoded string to be signed with the measurements. 23 - name: SlotId 30 - name: Certificate 35 - name: HashingAlgorithm 40 - name: PublicKey 43 A Privacy Enhanced Mail (PEM)-encoded public key that can be 45 - name: SignedMeasurements [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | check-qjson.c | 10 * See the COPYING.LIB file in the top-level directory. 43 g_string_truncate(json, json->len - 1); in to_json_str() 59 { "single byte utf-8 \\u0020", "single byte utf-8 ", .skip = 1 }, in escaped_string() 60 { "double byte utf-8 \\u00A2", "double byte utf-8 \xc2\xa2" }, in escaped_string() 61 { "triple byte utf-8 \\u20AC", "triple byte utf-8 \xe2\x82\xac" }, in escaped_string() 62 { "quadruple byte utf-8 \\uD834\\uDD1E", /* U+1D11E */ in escaped_string() 63 "quadruple byte utf-8 \xF0\x9D\x84\x9E" }, in escaped_string() 122 cstr = g_strndup(test_cases[i] + 1, strlen(test_cases[i]) - 2); in string_with_quotes() 132 * Most test cases are scraped from Markus Kuhn's UTF-8 decoder in utf8_string() 134 * http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt in utf8_string() [all …]
|
/openbmc/qemu/target/i386/kvm/ |
H A D | tdx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 #include "confidential-guest.h" 14 #include "tdx-quote-generator.h" 16 #define TYPE_TDX_GUEST "tdx-guest" 57 char *mrconfigid; /* base64 encoded sha384 digest */ 58 char *mrowner; /* base64 encoded sha384 digest */ 59 char *mrownerconfig; /* base64 encoded sha384 digest */
|
/openbmc/u-boot/arch/arm/include/asm/arch-sa1100/ |
H A D | bitfield.h | 34 * field's mask is cumbersome and might break the assembler (255-character 35 * line-size limit). 42 * Fld Encoded bit field. 57 * Field Encoded bit field (using the macro "Fld"). 69 #define FMsk(Field) (((UData (1) << FSize (Field)) - 1) << FShft (Field)) 70 #define FAlnMsk(Field) ((UData (1) << FSize (Field)) - 1) 82 * Value Bit-field value. 83 * Field Encoded bit field (using the macro "Fld"). 86 * FInsrt Bit-field value positioned appropriately. 101 * Data Data containing the bit-field to be extracted. [all …]
|
/openbmc/u-boot/arch/arm/include/asm/arch-pxa/ |
H A D | bitfield.h | 34 * field's mask is cumbersome and might break the assembler (255-character 35 * line-size limit). 42 * Fld Encoded bit field. 57 * Field Encoded bit field (using the macro "Fld"). 69 #define FMsk(Field) (((UData (1) << FSize (Field)) - 1) << FShft (Field)) 70 #define FAlnMsk(Field) ((UData (1) << FSize (Field)) - 1) 82 * Value Bit-field value. 83 * Field Encoded bit field (using the macro "Fld"). 86 * FInsrt Bit-field value positioned appropriately. 101 * Data Data containing the bit-field to be extracted. [all …]
|
/openbmc/pldm/common/ |
H A D | transport.hpp | 42 * @param[in] tid - The terminus ID of the message destination 43 * @param[in] tx - The encoded and framed message to send 44 * @param[in] len - The length of the buffer pointed-to by tx 56 * @param[out] tid - The terminus ID of the message source 57 * @param[out] rx - A pointer to the received, encoded message 58 * @param[out] len - The length of the buffer pointed-to by rx 68 * sendRecvMsg() is a wrapper for the non-compliant 74 * received, or the upper time-bound on a PLDM exchange is reached. Control 78 * @param[in] tid - The terminus ID of the endpoint with which the exchange 80 * @param[in] tx - The encoded and framed message to send [all …]
|
/openbmc/qemu/ui/ |
H A D | vnc-auth-sasl.c | 33 * files that use SASL API need to disable -Wdeprecated-declarations. 36 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 57 if (vs->sasl.conn) { in vnc_sasl_client_cleanup() 58 vs->sasl.runSSF = false; in vnc_sasl_client_cleanup() 59 vs->sasl.wantSSF = false; in vnc_sasl_client_cleanup() 60 vs->sasl.waitWriteSSF = 0; in vnc_sasl_client_cleanup() 61 vs->sasl.encodedLength = vs->sasl.encodedOffset = 0; in vnc_sasl_client_cleanup() 62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup() 63 g_free(vs->sasl.username); in vnc_sasl_client_cleanup() 64 g_free(vs->sasl.mechlist); in vnc_sasl_client_cleanup() [all …]
|
/openbmc/u-boot/arch/m68k/cpu/mcf532x/ |
H A D | speed.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * (C) Copyright 2000-2003 7 * Copyright (C) 2004-2008, 2012 Freescale Semiconductor, Inc. 8 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 31 #define MIN_LPD (0) /* Divider (not encoded) */ 32 #define MAX_LPD (15) /* Divider (not encoded) */ 33 #define DEFAULT_LPD (0) /* Divider (not encoded) */ 42 #define MIN_LPD (1 << 0) /* Divider (not encoded) */ 43 #define MAX_LPD (1 << 15) /* Divider (not encoded) */ 44 #define DEFAULT_LPD (1 << 1) /* Divider (not encoded) */ [all …]
|
/openbmc/libbej/include/libbej/ |
H A D | bej_encoder_json.hpp | 14 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 23 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 32 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 41 * @param[in] property - property to push. 42 * @param[in] dataPtr - pointer to a valid stack of type std::vector<void*> 49 * @brief Callback to get the encoded json payload. 51 * @param[in] data - pointer to a valid stack of type std::vector<void*> 52 * @param[in] dataSize - size of the stack 53 * @param[in] handlerContext - Buffer to store the payload 69 * @param[in] dictionaries - dictionaries needed for encoding. [all …]
|