Project

General

Profile

Actions

Bug #10880

closed

posix_memalign() should avoid clobbering return parameter on failure

Added by Rich Lowe over 3 years ago. Updated over 3 years ago.

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

100%

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

Description

At present, posix_memalign() always assigns to the parameter through which it returns even on failure.
This is rude, arguably against the standard, and causes a GCC test to fail.

Actions #1

Updated by Electric Monk over 3 years ago

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

git commit a547acf91a502e2d79ff67ef86d1b791883ca43a

commit  a547acf91a502e2d79ff67ef86d1b791883ca43a
Author: Richard Lowe <richlowe@richlowe.net>
Date:   2019-05-09T19:37:40.000Z

    10880 posix_memalign() should avoid clobbering return parameter on failure
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF