Trying to come up with ways to process large entries without
so much copying.

My thought for 2.4 is to introduce an apr_vformatter code
modifier, '#', into the s syntax.  e.g. %#s would normalize
any control codes into \x## or \c syntax, as appropriate.
And %#.10s would print a fixed 10 char string including \0
characters (a problem I encountered trying to make dumpio
a little more efficient).

This would drop an entire copy/test pass and simplify the
processing of all 'trusted' stings, allowing us to handle
all untrusted strings with %#s where appropriate.

Thoughts or alternate suggestions?

Bill

Reply via email to