[PATCH] Check \0-termination of string in c_getstr (simplified version)

Martin Liška mliska@suse.cz
Thu Oct 13 15:24:00 GMT 2016


Hello.

After receiving feedback from Richi and Wilco Dijkstra, I decided to fully not
support not null-terminated strings. It brings more complications and the code has started
to be overengineered. Thus c_getstr accepts only such strings and as a bonus it returns
length of a string.

Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.

Ready to be installed?
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-only-0-terminated-string-in-c_getstr-and-ret-simplified.patch
Type: text/x-patch
Size: 2935 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161013/4bc5cb2a/attachment.bin>


More information about the Gcc-patches mailing list