Page MenuHomePhabricator

Remove accidental sprintf injection in error reporting
ClosedPublic

Authored by alexmv on Mar 26 2018, 5:38 PM.
Tags
None
Referenced Files
F19505864: D19261.diff
Fri, Jan 9, 2:49 PM
F19505862: D19261.diff
Fri, Jan 9, 2:48 PM
F19505835: D19261.diff
Fri, Jan 9, 2:41 PM
F19505811: D19261.diff
Fri, Jan 9, 2:25 PM
F18878269: D19261.id.diff
Nov 6 2025, 4:23 PM
F18872475: D19261.diff
Nov 5 2025, 4:34 AM
F18773483: D19261.id.diff
Oct 9 2025, 10:18 AM
F18765780: D19261.diff
Oct 7 2025, 12:56 PM
Subscribers

Details

Summary

STDERR output with %s in it could cause:

ERROR 2: fprintf(): Too few arguments at [/usr/local/arcanist/src/workflow/ArcanistFeatureWorkflow.php:170]
Test Plan

Untested.

Diff Detail

Repository
rARC Arcanist
Branch
sprintf-injection
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19927
Build 27013: Run Core Tests
Build 27012: arc lint + arc unit

Event Timeline

I'm getting permanent build failures on this diff, which look unrelated to the diff itself?

I'll take a look at the tests, definitely doesn't look related.

This revision is now accepted and ready to land.Mar 26 2018, 8:34 PM

The test failures are just T10093, i.e. arc didn't push the changes to the staging environment. Most common reason is that you're working off a local fork, not the One True Upstream Repository?

Yeah, that's prbably exactly it -- we push staging refs to a different namespace to not clutter the standard tag namespace, which is likely the problem.