/openbmc/bmcweb/test/http/ |
H A D | utility_test.cpp | 52 std::string encoded; in TEST() local 54 encoded = base64encode(""); in TEST() 55 EXPECT_EQ(encoded, ""); in TEST() 57 encoded = base64encode("f"); in TEST() 58 EXPECT_EQ(encoded, "Zg=="); in TEST() 60 encoded = base64encode("f0"); in TEST() 61 EXPECT_EQ(encoded, "ZjA="); in TEST() 63 encoded = base64encode("f0\0"s); in TEST() 64 EXPECT_EQ(encoded, "ZjAA"); in TEST() 66 encoded = base64encode("f0\0 "s); in TEST() [all …]
|
/openbmc/libcper/sections/ |
H A D | cper-section-dmar-iommu.c | 36 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() local 38 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 44 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 46 free(encoded); in cper_section_dmar_iommu_to_ir() 51 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() 53 if (encoded == NULL) { in cper_section_dmar_iommu_to_ir() 58 json_object_new_string_len(encoded, in cper_section_dmar_iommu_to_ir() 60 free(encoded); in cper_section_dmar_iommu_to_ir() 95 json_object *encoded = json_object_object_get(section, "eventLogEntry"); in ir_section_dmar_iommu_to_cper() local 98 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper() [all …]
|
H A D | cper-section-cxl-protocol.c | 105 char *encoded; in cper_section_cxl_protocol_to_ir() local 124 encoded = base64_encode( in cper_section_cxl_protocol_to_ir() 127 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 132 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 134 free(encoded); in cper_section_cxl_protocol_to_ir() 150 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() 153 if (encoded == NULL) { in cper_section_cxl_protocol_to_ir() 157 json_object_new_string_len(encoded, in cper_section_cxl_protocol_to_ir() 160 free(encoded); in cper_section_cxl_protocol_to_ir() 175 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() [all …]
|
H A D | cper-section-pcie.c | 143 char *encoded = NULL; in cper_section_pcie_to_ir() local 145 char *encoded = in cper_section_pcie_to_ir() local 148 if (encoded == NULL) { in cper_section_pcie_to_ir() 154 encoded, encoded_len)); in cper_section_pcie_to_ir() 155 free(encoded); in cper_section_pcie_to_ir() 164 encoded = NULL; in cper_section_pcie_to_ir() 168 encoded = base64_encode((UINT8 *)pcie_error->AerInfo.PcieAer, in cper_section_pcie_to_ir() 170 if (encoded == NULL) { in cper_section_pcie_to_ir() 175 encoded, encoded_len)); in cper_section_pcie_to_ir() 176 free(encoded); in cper_section_pcie_to_ir() [all …]
|
H A D | cper-section-dmar-vtd.c | 87 char *encoded = in cper_section_dmar_vtd_to_ir() local 90 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 92 free(encoded); in cper_section_dmar_vtd_to_ir() 96 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir() 98 if (encoded == NULL) { in cper_section_dmar_vtd_to_ir() 102 json_object_new_string_len(encoded, in cper_section_dmar_vtd_to_ir() 104 free(encoded); in cper_section_dmar_vtd_to_ir() 180 json_object *encoded = json_object_object_get(section, "rootEntry"); in ir_section_dmar_vtd_to_cper() local 183 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper() 184 json_object_get_string_len(encoded), in ir_section_dmar_vtd_to_cper() [all …]
|
H A D | cper-section-ccix-per.c | 48 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local 51 if (encoded == NULL) { in cper_section_ccix_per_to_ir() 57 encoded, encoded_len)); in cper_section_ccix_per_to_ir() 58 free(encoded); in cper_section_ccix_per_to_ir() 107 json_object *encoded = obj; in ir_section_ccix_per_to_cper() local 111 json_object_get_string(encoded), in ir_section_ccix_per_to_cper() 112 json_object_get_string_len(encoded), &decoded_len); in ir_section_ccix_per_to_cper()
|
H A D | cper-section-cxl-component.c | 74 char *encoded = base64_encode( in cper_section_cxl_component_to_ir() local 76 if (encoded == NULL) { in cper_section_cxl_component_to_ir() 82 encoded, encoded_len)); in cper_section_cxl_component_to_ir() 84 free(encoded); in cper_section_cxl_component_to_ir() 148 json_object *encoded = in ir_section_cxl_component_to_cper() local 154 json_object_get_string(encoded), in ir_section_cxl_component_to_cper() 155 json_object_get_string_len(encoded), &decoded_len); in ir_section_cxl_component_to_cper()
|
/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-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-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-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.cpp | 10 char *encoded = base64_encode(data.data(), data.size(), &encoded_len); in TEST() local 12 ASSERT_EQ(std::string_view(encoded, encoded_len), "Zg=="); in TEST() 13 free(encoded); in TEST()
|
/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()
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | qcom,usb-8x16-phy.txt | 10 Value type: <prop-encoded-array> 15 Value type: <prop-encoded-array> 42 Value type: <prop-encoded-array> 52 Value type: <prop-encoded-array>
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | pamu.txt | 13 - ranges : <prop-encoded-array> 20 - interrupts : <prop-encoded-array> 31 - reg : <prop-encoded-array> 51 - reg : <prop-encoded-array> 58 : <prop-encoded-array> 64 : <prop-encoded-array> 83 - fsl,liodn-reg : <prop-encoded-array>
|
H A D | dcsr.txt | 42 Value type: <prop-encoded-array> 89 Value type: <prop-encoded-array> 118 Value type: <prop-encoded-array> 155 Value type: <prop-encoded-array> 180 Value type: <prop-encoded-array> 217 Value type: <prop-encoded-array> 245 Value type: <prop-encoded-array> 276 Value type: <prop-encoded-array> 305 Value type: <prop-encoded-array> 335 Value type: <prop-encoded-array> [all …]
|
H A D | mcm.txt | 22 Value type: <prop-encoded-array> 51 Value type: <prop-encoded-array> 58 Value type: <prop-encoded-array>
|
H A D | ecm.txt | 22 Value type: <prop-encoded-array> 51 Value type: <prop-encoded-array> 58 Value type: <prop-encoded-array>
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-g-jpegcomp.rst | 47 itself, and it'll be stored in the JPEG-encoded fields (eg; interlacing 49 like 'encoded by me' or so. 53 stored in the JPEG-encoded fields. These define how the JPEG field is 54 encoded. If you omit them, applications assume you've used standard
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-el15203000.txt | 9 Vending area LED encoded with symbol 'V' (hex code 0x56). 13 encoded with symbol 'S' (hex code 0x53). Supports blinking breathing pattern. 15 Water Pipe LED encoded with symbol 'P' (hex code 0x50) and
|
/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/linux/Documentation/powerpc/ |
H A D | associativity.rst | 63 prop-encoded-array: The number N of the domainIDs encoded as with encode-int, followed by 64 N domainID encoded as with encode-int 74 prop-encoded-array: The number N of the distance values encoded as with encode-int, followed by 75 N distance values encoded as with encode-bytes. The max distance value we could encode is 255.
|