We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34fb0d8 commit 6c8a00bCopy full SHA for 6c8a00b
ecc_enclave/enclave/shim.cpp
@@ -192,7 +192,15 @@ int unmarshal_values(
192
{
193
JSON_Object* pair = json_array_get_object(pairs, i);
194
const char* key = json_object_get_string(pair, "key");
195
+ if (key == NULL) {
196
+ LOG_ERROR("Shim: Cannot parse json: key does not exists");
197
+ return -1;
198
+ }
199
const char* b64value = json_object_get_string(pair, "value");
200
+ if (b64value == NULL) {
201
+ LOG_ERROR("Shim: Cannot parse json: value does not exist");
202
203
204
std::string value = base64_decode(b64value);
205
values.insert({key, value});
206
}
0 commit comments