Home
last modified time | relevance | path

Searched full:encoded (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A DCVE-2019-7574.patch29 - Uint8 *freeable, *encoded, *decoded;
30 + Uint8 *freeable, *encoded, *encoded_end, *decoded;
37 encoded = *audio_buf;
38 + encoded_end = encoded + encoded_len;
46 + if (encoded + 4 > encoded_end) goto invalid_size;
48 state[c].sample = ((encoded[1]<<8)|encoded[0]);
49 encoded += 2;
54 + if (encoded + 4 > encoded_end) goto invalid_size;
55 Fill_IMA_ADPCM_block(decoded, encoded,
57 encoded += 4;
H A DCVE-2019-7577.patch64 - Uint8 *freeable, *encoded, *decoded;
65 + Uint8 *freeable, *encoded, *encoded_end, *decoded;
72 encoded = *audio_buf;
73 + encoded_end = encoded + encoded_len;
81 + if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto too_short;
82 state[0]->hPredictor = *encoded++;
84 state[1]->hPredictor = *encoded++;
89 state[0]->iDelta = ((encoded[1]<<8)|encoded[0]);
90 encoded += sizeof(Sint16);
96 + if (encoded + 1 > encoded_end) goto too_short;
[all …]
H A DCVE-2019-7575.patch31 - Uint8 *freeable, *encoded, *encoded_end, *decoded;
32 + Uint8 *freeable, *encoded, *encoded_end, *decoded, *decoded_end;
48 - if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto too_short;
49 + if (encoded + 7 + (stereo ? 7 : 0) > encoded_end) goto invalid_size;
50 state[0]->hPredictor = *encoded++;
52 state[1]->hPredictor = *encoded++;
65 - if (encoded + 1 > encoded_end) goto too_short;
66 + if (encoded + 1 > encoded_end) goto invalid_size;
69 nybble = (*encoded)>>4;
H A DCVE-2019-7572.patch53 - Uint8 *freeable, *encoded, *encoded_end, *decoded;
54 + Uint8 *freeable, *encoded, *encoded_end, *decoded, *decoded_end;
77 if (encoded + 4 > encoded_end) goto invalid_size;
80 Fill_IMA_ADPCM_block(decoded, encoded,
82 encoded += 4;
/openbmc/libcper/sections/
H A Dcper-section-dmar-iommu.c55 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()
72 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir()
77 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir()
79 free(encoded); in cper_section_dmar_iommu_to_ir()
114 json_object *encoded = json_object_object_get(section, "eventLogEntry"); in ir_section_dmar_iommu_to_cper() local
117 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper()
[all …]
H A Dcper-section-dmar-vtd.c106 char *encoded = in cper_section_dmar_vtd_to_ir() local
109 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir()
111 free(encoded); in cper_section_dmar_vtd_to_ir()
115 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir()
117 if (encoded == NULL) { in cper_section_dmar_vtd_to_ir()
121 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir()
123 free(encoded); in cper_section_dmar_vtd_to_ir()
199 json_object *encoded = json_object_object_get(section, "rootEntry"); in ir_section_dmar_vtd_to_cper() local
202 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper()
203 json_object_get_string_len(encoded), in ir_section_dmar_vtd_to_cper()
[all …]
H A Dcper-section-cxl-protocol.c143 char *encoded; in cper_section_cxl_protocol_to_ir() local
150 encoded = base64_encode( in cper_section_cxl_protocol_to_ir()
153 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir()
161 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir()
163 free(encoded); in cper_section_cxl_protocol_to_ir()
179 encoded = base64_encode(cur_pos, in cper_section_cxl_protocol_to_ir()
182 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir()
187 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir()
190 free(encoded); in cper_section_cxl_protocol_to_ir()
205 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir()
[all …]
H A Dcper-section-ccix-per.c72 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()
82 encoded, encoded_len)); in cper_section_ccix_per_to_ir()
83 free(encoded); in cper_section_ccix_per_to_ir()
132 json_object *encoded = obj; in ir_section_ccix_per_to_cper() local
136 json_object_get_string(encoded), in ir_section_ccix_per_to_cper()
137 json_object_get_string_len(encoded), &decoded_len); in ir_section_ccix_per_to_cper()
H A Dcper-section-cxl-component.c97 char *encoded = base64_encode(cur_pos, remaining_len, in cper_section_cxl_component_to_ir() local
99 if (encoded == NULL) { in cper_section_cxl_component_to_ir()
109 encoded, encoded_len)); in cper_section_cxl_component_to_ir()
111 free(encoded); in cper_section_cxl_component_to_ir()
175 json_object *encoded = in ir_section_cxl_component_to_cper() local
181 json_object_get_string(encoded), in ir_section_cxl_component_to_cper()
182 json_object_get_string_len(encoded), &decoded_len); in ir_section_cxl_component_to_cper()
/openbmc/bmcweb/test/http/
H A Dutility_test.cpp50 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()
61 encoded = base64encode("f0\0"s); in TEST()
62 EXPECT_EQ(encoded, "ZjAA"); in TEST()
64 encoded = base64encode("f0\0 "s); in TEST()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/audiofile/files/
H A D0005-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch23 @@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded)
24 if (encoded[1] & 0x80)
27 - m_adpcmState[c].index = encoded[2];
28 + m_adpcmState[c].index = clamp(encoded[2], 0, 88);
32 @@ -210,7 +210,7 @@ int IMA::decodeBlockQT(const uint8_t *encoded, int16_t *decoded)
36 - state.index = encoded[1] & 0x7f;
37 + state.index = clamp(encoded[1] & 0x7f, 0, 88);
38 encoded += 2;
/openbmc/qemu/crypto/
H A Dder.h30 /* Simple decoder used to parse DER encoded rsa keys. */
49 * Decode integer from DER-encoded data.
65 * Decode sequence from DER-encoded data, similar with der_decode_int.
88 * Decode OID from DER-encoded data, similar with der_decode_int.
111 * Decode OCTET STRING from DER-encoded data, similar with der_decode_int.
134 * Decode BIT STRING from DER-encoded data, similar with der_decode_int.
208 * @src: the source data of oid, note it should be already encoded, this
219 * @src: the source data of integer, note it should be already encoded, this
249 * Compute the expected buffer size to save all encoded things.
256 * @dst: the destination to save the encoded data, the length of dst should
[all …]
H A Drsakey.h32 * 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 Dbej_common.c49 // 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()
/openbmc/qemu/docs/specs/
H A Dppc-spapr-hotplug.rst42 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.
66 First 4-bytes: BE-encoded integer denoting the number of entries.
68 Each 4-byte entry: BE-encoded ``<index>`` integer that is unique across all
93 First 4-bytes: BE-encoded integer denoting the number of entries.
95 Each 4-byte entry: 32-bit, BE-encoded ``<index>`` integer that specifies the
105 First 4-bytes: BE-encoded integer denoting the number of entries.
107 Each entry: a NULL-terminated ``<type>`` string encoded as a byte array.
287 The DRC index is encoded in the first 4-bytes of the first work area buffer.
310 New property's value, encoded as an OFDT-compatible byte array.
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Attestation/
H A DMeasurementSet.interface.yaml20 A 32-byte hex-encoded string to be signed with the measurements.
43 A Privacy Enhanced Mail (PEM)-encoded public key that can be
48 Base64 encoded cryptographic signed statement generated by the
/openbmc/libcper/tests/
H A Dbase64_test.c22 char *encoded = base64_encode((unsigned char *)data, in test_base64_encode_good() local
25 assert(memcmp(encoded, good_encode_outputs[i], encoded_len) == in test_base64_encode_good()
27 free(encoded); in test_base64_encode_good()
/openbmc/qemu/tests/unit/
H A Dcheck-qjson.c794 const char *encoded; in int_number() member
811 for (i = 0; test_cases[i].encoded; i++) { in int_number()
813 qobject_from_json(test_cases[i].encoded, in int_number()
829 test_cases[i].reencoded ?: test_cases[i].encoded); in int_number()
839 const char *encoded; in uint_number() member
853 for (i = 0; test_cases[i].encoded; i++) { in uint_number()
855 qobject_from_json(test_cases[i].encoded, in uint_number()
866 test_cases[i].reencoded ?: test_cases[i].encoded); in uint_number()
876 const char *encoded; in float_number() member
894 for (i = 0; test_cases[i].encoded; i++) { in float_number()
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-sa1100/
H A Dbitfield.h42 * Fld Encoded bit field.
57 * Field Encoded bit field (using the macro "Fld").
83 * Field Encoded bit field (using the macro "Fld").
102 * Field Encoded bit field (using the macro "Fld").
/openbmc/u-boot/arch/arm/include/asm/arch-pxa/
H A Dbitfield.h42 * Fld Encoded bit field.
57 * Field Encoded bit field (using the macro "Fld").
83 * Field Encoded bit field (using the macro "Fld").
102 * Field Encoded bit field (using the macro "Fld").
/openbmc/qemu/target/i386/kvm/
H A Dtdx.h57 char *mrconfigid; /* base64 encoded sha384 digest */
58 char *mrowner; /* base64 encoded sha384 digest */
59 char *mrownerconfig; /* base64 encoded sha384 digest */
/openbmc/pldm/common/
H A Dtransport.hpp43 * @param[in] tx - The encoded and framed message to send
57 * @param[out] rx - A pointer to the received, encoded message
80 * @param[in] tx - The encoded and framed message to send
82 * @param[out] rx - A pointer to the received, encoded message
/openbmc/qemu/ui/
H A Dvnc-auth-sasl.c62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup()
77 "Encoded: %p size %d offset %d\n", in vnc_client_write_sasl()
79 vs->sasl.encoded, vs->sasl.encodedLength, vs->sasl.encodedOffset); in vnc_client_write_sasl()
81 if (!vs->sasl.encoded) { in vnc_client_write_sasl()
86 (const char **)&vs->sasl.encoded, in vnc_client_write_sasl()
96 vs->sasl.encoded + vs->sasl.encodedOffset, in vnc_client_write_sasl()
120 vs->sasl.encoded = NULL; in vnc_client_write_sasl()
127 * SASL encoded output in vnc_client_write_sasl()
145 uint8_t encoded[4096]; in vnc_client_read_sasl() local
150 ret = vnc_client_read_buf(vs, encoded, sizeof(encoded)); in vnc_client_read_sasl()
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf532x/
H A Dspeed.c31 #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) */
/openbmc/libbej/include/libbej/
H A Dbej_encoder_json.hpp49 * @brief Callback to get the encoded json payload.
79 * @brief Get the JSON encoded payload.
81 * @return std::vector<uint8_t> containing encoded JSON bytes. If the

12345678910>>...18