This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Internal Printf string precision argument + padding.
ClosedPublic

Authored by alekseyshl on Apr 19 2018, 3:34 PM.

Details

Summary

Example:

Printf("%.*s", 5, "123");

should yield:

'123  '

In case Printf's requested string precision is larger than the string
argument, the resulting string should be padded up to the requested
precision.

For the simplicity sake, implementing right padding only.

Event Timeline

alekseyshl created this revision.Apr 19 2018, 3:34 PM
Herald added subscribers: Restricted Project, delcypher, kubamracek. · View Herald TranscriptApr 19 2018, 3:34 PM
eugenis accepted this revision.Apr 20 2018, 10:49 AM
This revision is now accepted and ready to land.Apr 20 2018, 10:49 AM
This revision was automatically updated to reflect the committed changes.