https://bugzilla.redhat.com/show_bug.cgi?id=613056 Resolves: bug 613056 Bug description: Fix coverify Defect Type: Null pointer dereferences issues 11892 - 11939 description: Catch possible NULL pointer in display_index_item().
@@ -630,7 +630,12 @@ static void display_index_item(DBC *cursor, DBT *key, DBT *data,
exit(1);
}
- if (idl && idl->max == 0) {
+ if (idl == NULL) {
+ printf("\t(illegal idl)\n");
+ return;
+ }
+
+ if (idl->max == 0) {
/* allids; should not exist in the new idl world */
if ( allids_cnt == 0 && (display_mode & SHOWSUMMARY)) {
printf("The following index keys reached allids:\n");