Page MenuHomeFreeBSD

Corrected non-portable reuse of va_list in dt_printf()
ClosedPublic

Authored by gnn on Oct 5 2016, 8:59 PM.
Tags
None
Referenced Files
F136756752: D8157.id21253.diff
Wed, Nov 19, 7:41 AM
Unknown Object (File)
Tue, Nov 18, 1:31 PM
Unknown Object (File)
Fri, Nov 7, 4:05 AM
Unknown Object (File)
Wed, Nov 5, 12:17 PM
Unknown Object (File)
Wed, Oct 29, 7:47 PM
Unknown Object (File)
Wed, Oct 29, 2:50 PM
Unknown Object (File)
Oct 19 2025, 12:02 AM
Unknown Object (File)
Oct 7 2025, 4:15 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gnn retitled this revision from to Corrected non-portable reuse of va_list in dt_printf().
gnn updated this object.
gnn edited the test plan for this revision. (Show Details)
gnn added reviewers: markj, bz.
rstone added a reviewer: rstone.
This revision is now accepted and ready to land.Oct 5 2016, 9:34 PM
cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
609 ↗(On Diff #21086)

Need the same change here.

693 ↗(On Diff #21086)

... and here.

I think it'd be slightly cleaner to do the va_copy once at the beginning of the function.

cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c
693 ↗(On Diff #21086)

Hm, never mind about the single va_copy() call - ap2 might be used more than once in the same call to dt_printf().

gnn marked 2 inline comments as done.Oct 5 2016, 10:07 PM
gnn edited edge metadata.

Address comments from markj@

This revision now requires review to proceed.Oct 5 2016, 10:34 PM
markj edited edge metadata.
This revision is now accepted and ready to land.Oct 5 2016, 11:28 PM
This revision was automatically updated to reflect the committed changes.