Project

General

Profile

Bug #11271

libprint: memset after calloc and possible NULL pointer dereference

Added by Toomas Soome 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

calloc() does zero the memory for us, but we still do need to check the return value.

This issue was pointed by Gergő Mihály Doma while reviewing: https://illumos.org/rb/r/1955/


Related issues

Related to illumos gate - Bug #11170: print: NULL pointer errorsClosed

Actions

History

#1

Updated by Toomas Soome 4 months ago

  • Description updated (diff)
#2

Updated by Toomas Soome 4 months ago

  • Related to Bug #11170: print: NULL pointer errors added
#3

Updated by Electric Monk 4 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit e1a5df12e67cd370138ad95c737fb5436fbb2131

commit  e1a5df12e67cd370138ad95c737fb5436fbb2131
Author: Toomas Soome <tsoome@me.com>
Date:   2019-06-27T20:14:19.000Z

    11271 libprint: memset after calloc and possible NULL pointer dereference
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Reviewed by: Norm Jacobs <naj@snapcon.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF