Fix rpcgen buffer overrun (bug 20790)

Florian Weimer fweimer@redhat.com
Tue Nov 8 08:37:00 GMT 2016


On 11/07/2016 07:40 PM, Joseph Myers wrote:
> 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
>
> 	[BZ #20790]
> 	* sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
> 	to MAXLINESIZE.
> 	* sunrpc/bug20790.x: New file.
> 	* sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
> 	variable.
> 	[$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
> 	[$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.

This looks okay to me, all things considering.  (Fixed-length buffers 
are against GNU coding standards, but sunrpc/* doesn't really follow 
them anyway.)

Thanks,
Florian



More information about the Libc-alpha mailing list