summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bplist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bplist.c b/src/bplist.c
index cc0b928..ecc0684 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -426,12 +426,12 @@ static plist_t parse_dict_node(struct bplist_data *bplist, const char** bnode, u
426 426
427 if (index1 >= bplist->num_objects) { 427 if (index1 >= bplist->num_objects) {
428 plist_free(node); 428 plist_free(node);
429 PLIST_BIN_ERR("%s: dict entry %" PRIu64 " key index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects); 429 PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": key index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects);
430 return NULL; 430 return NULL;
431 } 431 }
432 if (index2 >= bplist->num_objects) { 432 if (index2 >= bplist->num_objects) {
433 plist_free(node); 433 plist_free(node);
434 PLIST_BIN_ERR("%s: dict entry %" PRIu64 " value index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects); 434 PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": value index (%" PRIu64 ") must be smaller than the number of objects (%" PRIu64 ")\n", __func__, j, index1, bplist->num_objects);
435 return NULL; 435 return NULL;
436 } 436 }
437 437
@@ -443,7 +443,7 @@ static plist_t parse_dict_node(struct bplist_data *bplist, const char** bnode, u
443 } 443 }
444 444
445 if (plist_get_data(key)->type != PLIST_STRING) { 445 if (plist_get_data(key)->type != PLIST_STRING) {
446 PLIST_BIN_ERR("%s: malformed binary plist dict, invalid node type for key!\n", __func__); 446 PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": invalid node type for key\n", __func__, j);
447 plist_free(node); 447 plist_free(node);
448 return NULL; 448 return NULL;
449 } 449 }
@@ -451,7 +451,7 @@ static plist_t parse_dict_node(struct bplist_data *bplist, const char** bnode, u
451 /* enforce key type */ 451 /* enforce key type */
452 plist_get_data(key)->type = PLIST_KEY; 452 plist_get_data(key)->type = PLIST_KEY;
453 if (!plist_get_data(key)->strval) { 453 if (!plist_get_data(key)->strval) {
454 PLIST_BIN_ERR("%s: malformed binary plist dict, invalid key node encountered!\n", __func__); 454 PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": key must not be NULL\n", __func__, j);
455 plist_free(key); 455 plist_free(key);
456 plist_free(node); 456 plist_free(node);
457 return NULL; 457 return NULL;