]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Prohibit unbounded arrays in XDR protocols
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 19 Aug 2013 14:17:20 +0000 (15:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 29 Aug 2013 14:36:13 +0000 (15:36 +0100)
commita4d1cfdc59ec18bfade96333cafd465dad7e40fb
treebcc275df255625afe59339254fdd9955a077ad08
parent47fb5672f2f4e9efcd4e9ec30f5e723c46fa8e6f
Prohibit unbounded arrays in XDR protocols

The use of <> is a security issue for RPC parameters, since a
malicious client can set a huge array length causing arbitrary
memory allocation in the daemon.

It is also a robustness issue for RPC return values, because if
the stream is corrupted, it can cause the client to also allocate
arbitrary memory.

Use a syntax-check rule to prohibit any use of <>

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
cfg.mk