Page MenuHomeFreeBSD

elftoolchain: Consistently use item count as the first argument to calloc
ClosedPublic

Authored by jhb on Jul 17 2024, 7:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 11:52 AM
Unknown Object (File)
Thu, Aug 13, 12:14 AM
Unknown Object (File)
Mon, Aug 10, 10:20 AM
Unknown Object (File)
Sat, Aug 8, 4:06 PM
Unknown Object (File)
Sat, Aug 8, 10:49 AM
Unknown Object (File)
Thu, Aug 6, 5:19 AM
Unknown Object (File)
Tue, Jul 28, 1:40 PM
Unknown Object (File)
Jul 11 2026, 12:25 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste added a subscriber: jkoshy.

Will also ping @jkoshy

This revision is now accepted and ready to land.Jul 17 2024, 7:18 PM

Note that this was the only calloc instance in all of elftc that GCC warned about. All the others (even in this file) were already consistent with the number being first.

Hmm, I've been avoiding addressing warnings in contrib...

It's fine in elftoolchain - we are the primary consumer and either jkoshy or I can make the change upstream.