Page MenuHomeFreeBSD

Invert calloc(3) argument order.
ClosedPublic

Authored by araujo on Aug 23 2016, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 18 2024, 8:23 PM
Unknown Object (File)
Nov 8 2024, 12:22 AM
Unknown Object (File)
Nov 5 2024, 10:23 AM
Unknown Object (File)
Nov 5 2024, 10:23 AM
Unknown Object (File)
Nov 5 2024, 10:23 AM
Unknown Object (File)
Nov 3 2024, 7:39 AM
Unknown Object (File)
Oct 15 2024, 8:07 AM
Unknown Object (File)
Sep 22 2024, 10:19 PM
Subscribers

Details

Summary

Seemed some calloc(3) calls has its arguments inverted,
the manpage says, it should be used nitems and size, not the oposite.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4898
Build 4961: arc lint + arc unit

Event Timeline

araujo retitled this revision from to Invert calloc(3) argument order..
araujo updated this object.
araujo edited the test plan for this revision. (Show Details)
araujo added a reviewer: grehan.
grehan added a reviewer: mav.
grehan edited edge metadata.

Will need to be MFC'd asap.

This revision is now accepted and ready to land.Aug 26 2016, 6:25 AM
mav edited edge metadata.

I have no objections, though don't really understand agitation about this.

Didn't want to sound alarmist - just that this type of thing can upset static analyzers.

This revision was automatically updated to reflect the committed changes.