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)
Dec 31 2024, 9:58 PM
Unknown Object (File)
Dec 30 2024, 11:08 PM
Unknown Object (File)
Dec 29 2024, 11:25 PM
Unknown Object (File)
Dec 28 2024, 10:37 PM
Unknown Object (File)
Dec 27 2024, 11:19 PM
Unknown Object (File)
Dec 20 2024, 8:41 PM
Unknown Object (File)
Dec 20 2024, 4:44 PM
Unknown Object (File)
Nov 18 2024, 8:23 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.