Page MenuHomePhabricator

Remove accidental sprintf injection in error reporting
ClosedPublic

Authored by alexmv on Mar 26 2018, 5:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 3:09 PM
Unknown Object (File)
Wed, Dec 25, 4:37 PM
Unknown Object (File)
Mon, Dec 16, 12:02 PM
Unknown Object (File)
Dec 6 2024, 3:19 PM
Unknown Object (File)
Nov 28 2024, 3:35 PM
Unknown Object (File)
Nov 27 2024, 6:59 AM
Unknown Object (File)
Nov 26 2024, 3:52 AM
Unknown Object (File)
Nov 23 2024, 12:44 AM
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.