| /openbmc/libcper/sections/ |
| H A D | cper-section-dmar-iommu.c | 62 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() local 64 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 72 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 74 free(encoded); in cper_section_dmar_iommu_to_ir() 79 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() 81 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 89 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 91 free(encoded); in cper_section_dmar_iommu_to_ir() 126 json_object *encoded = json_object_object_get(section, "eventLogEntry"); in ir_section_dmar_iommu_to_cper() local 129 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper() [all …]
|
| H A D | cper-section-dmar-vtd.c | 113 char *encoded = in cper_section_dmar_vtd_to_ir() local 116 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 118 free(encoded); in cper_section_dmar_vtd_to_ir() 122 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir() 124 if (encoded == NULL) { in cper_section_dmar_vtd_to_ir() 128 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 130 free(encoded); in cper_section_dmar_vtd_to_ir() 206 json_object *encoded = json_object_object_get(section, "rootEntry"); in ir_section_dmar_vtd_to_cper() local 209 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper() 210 json_object_get_string_len(encoded), in ir_section_dmar_vtd_to_cper() [all …]
|
| H A D | cper-section-cxl-protocol.c | 153 char *encoded; in cper_section_cxl_protocol_to_ir() local 160 encoded = base64_encode( in cper_section_cxl_protocol_to_ir() 163 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 172 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 174 free(encoded); in cper_section_cxl_protocol_to_ir() 190 encoded = base64_encode(cur_pos, in cper_section_cxl_protocol_to_ir() 193 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 200 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 203 free(encoded); in cper_section_cxl_protocol_to_ir() 218 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() [all …]
|
| H A D | cper-section-ccix-per.c | 81 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local 84 if (encoded == NULL) { in cper_section_ccix_per_to_ir() 91 encoded, encoded_len)); in cper_section_ccix_per_to_ir() 92 free(encoded); in cper_section_ccix_per_to_ir() 141 json_object *encoded = obj; in ir_section_ccix_per_to_cper() local 145 json_object_get_string(encoded), in ir_section_ccix_per_to_cper() 146 json_object_get_string_len(encoded), &decoded_len); in ir_section_ccix_per_to_cper()
|
| H A D | cper-section-cxl-component.c | 109 char *encoded = base64_encode(cur_pos, remaining_len, in cper_section_cxl_component_to_ir() local 111 if (encoded == NULL) { in cper_section_cxl_component_to_ir() 123 encoded, encoded_len)); in cper_section_cxl_component_to_ir() 125 free(encoded); in cper_section_cxl_component_to_ir() 189 json_object *encoded = in ir_section_cxl_component_to_cper() local 195 json_object_get_string(encoded), in ir_section_cxl_component_to_cper() 196 json_object_get_string_len(encoded), &decoded_len); in ir_section_cxl_component_to_cper()
|
| H A D | cper-section-pcie.c | 467 char *encoded = NULL; in pcie_capability_to_ir() local 470 encoded = base64_encode((UINT8 *)pcie_error->Capability.PcieCap, 60, in pcie_capability_to_ir() 472 if (encoded == NULL) { in pcie_capability_to_ir() 476 json_object_new_string_len(encoded, in pcie_capability_to_ir() 478 free(encoded); in pcie_capability_to_ir() 1084 char *encoded = NULL; in pcie_aer_to_ir() local 1087 encoded = base64_encode((UINT8 *)pcie_error->AerInfo.PcieAer, 96, in pcie_aer_to_ir() 1089 if (encoded == NULL) { in pcie_aer_to_ir() 1093 json_object_new_string_len(encoded, in pcie_aer_to_ir() 1095 free(encoded); in pcie_aer_to_ir() [all …]
|
| H A D | cper-section-arm.c | 280 char *encoded = base64_encode(cur_pos, input_size, in cper_section_arm_to_ir() local 282 if (encoded == NULL) { in cper_section_arm_to_ir() 293 encoded, encoded_len)); in cper_section_arm_to_ir() 294 free(encoded); in cper_section_arm_to_ir() 912 char *encoded = base64_encode((UINT8 *)*cur_pos, in cper_arm_processor_context_to_ir() local 915 if (encoded == NULL) { in cper_arm_processor_context_to_ir() 920 json_object_new_string_len(encoded, in cper_arm_processor_context_to_ir() 922 free(encoded); in cper_arm_processor_context_to_ir() 1501 json_object *encoded = json_object_object_get(registers, "data"); in ir_arm_unknown_register_to_cper() local 1505 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_arm_unknown_register_to_cper() [all …]
|
| /openbmc/bmcweb/test/http/ |
| H A D | utility_test.cpp | 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() 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-graphics/libsdl/libsdl-1.2.15/ |
| H A D | CVE-2019-7574.patch | 29 - 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 D | CVE-2019-7575.patch | 31 - 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 D | CVE-2019-7577.patch | 64 - 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 D | CVE-2019-7572.patch | 53 - 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/openbmc/meta-openembedded/meta-oe/recipes-multimedia/audiofile/files/ |
| H A D | 0005-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch | 23 @@ -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;
|
| H A D | 0008-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch | 105 @@ -212,13 +248,16 @@ int MSADPCM::decodeBlock(const uint8_t *encoded, int16_t *decoded) 111 code = *encoded >> 4; 117 code = *encoded & 0x0f; 123 encoded++;
|
| /openbmc/qemu/tests/unit/ |
| H A D | check-qjson.c | 794 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/libcper/tests/ |
| H A D | base64_test.c | 22 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/ui/ |
| H A D | vnc-auth-sasl.c | 62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup() 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() 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() 155 (char *)encoded, ret, in vnc_client_read_sasl() 161 encoded, ret, decoded, decodedLen); in vnc_client_read_sasl()
|
| H A D | vnc-auth-sasl.h | 53 const uint8_t *encoded; member
|
| /openbmc/qemu/docs/specs/ |
| H A D | ppc-spapr-hotplug.rst | 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. 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/openbmc-test-automation/lib/ |
| H A D | sensor_info_record.py | 115 encoded = sensor_name.encode("utf-8") 116 truncated = encoded[:READING_VALUE_BYTE_LIMIT]
|
| /openbmc/qemu/qapi/ |
| H A D | uefi.json | 30 # @data: variable value, encoded as hex string. 32 # @time: variable modification time. EFI_TIME struct, encoded as hex
|
| H A D | ebpf.json | 26 # @object: the eBPF object encoded in base64 59 # Returns: eBPF object encoded in base64.
|
| /openbmc/libcper/ |
| H A D | ir-parse.c | 189 json_object *encoded = json_object_object_get(ir, "data"); in ir_section_to_cper() local 194 json_object_get_string(encoded), in ir_section_to_cper() 195 json_object_get_string_len(encoded), &decoded_len); in ir_section_to_cper()
|
| /openbmc/u-boot/arch/arm/mach-sunxi/ |
| H A D | rmr_switch.S | 18 @ To get the encoded bytes, use: 27 @ code found in encoded form in boot0.h.
|
| /openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/klibc/files/ |
| H A D | klcc-consider-sysroot.patch | 20 + # Override gcc encoded sysroot
|