|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #53148] NULL characters not processed correctly in *printf() family of functions |
Date: | Tue, 13 Feb 2018 18:08:33 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #1, bug #53148 (project octave): I added a FIXME note to the code in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/0c6785fb557c). There is a call to c_str() on the format specifier in order to turn it into a C style string for submission to the library functions printf or sprintf. It is at that point that the embedded NULLs become a problem. Given that we can't change the C library, it might require rewriting the format string to use '%c' and an argument of 0. This starts to look very painful. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53148> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |