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)
Thu, Apr 4, 6:49 AM
Unknown Object (File)
Tue, Apr 2, 12:34 AM
Unknown Object (File)
Jan 14 2024, 7:22 PM
Unknown Object (File)
Jan 9 2024, 8:31 PM
Unknown Object (File)
Jan 9 2024, 8:31 PM
Unknown Object (File)
Jan 9 2024, 8:31 PM
Unknown Object (File)
Jan 9 2024, 8:15 PM
Unknown Object (File)
Dec 22 2023, 9:55 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 Not Applicable
Unit
Tests Not Applicable

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.