Project

General

Profile

Actions

Bug #5679

closed

be_sort_list(): Possible null pointer dereference

Added by Marcel Telka over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
lib - userland libraries
Start date:
2015-03-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

In a case the realloc() fails, we will crash at line 649 in be_sort_list():

646    for (p = *pstart, nbe = 0; p != NULL; nbe++, p = p->be_next_node) {
647        ptrlist = realloc(ptrlist,
648            sizeof (be_node_list_t *) * (nbe + 2));
649        ptrlist[nbe] = p;
650    }

Related issues

Is duplicate of illumos gate - Bug #5970: Many source files don't handle realloc() failureNew2015-05-29

Actions
Actions

Also available in: Atom PDF