]> git.ipfire.org Git - thirdparty/libvirt.git/commit
maint: avoid remaining sprintf uses
authorEric Blake <eblake@redhat.com>
Wed, 18 Aug 2010 23:31:39 +0000 (17:31 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 17 Nov 2010 17:13:12 +0000 (10:13 -0700)
commite8aba782e755760a77a8a35f9583e4e31995cda4
treed379bdc0d19350916590dd6c131f326eb0d07f7d
parentc811d46fab758e61af05a8ebc7f4cb4a538fe50f
maint: avoid remaining sprintf uses

* cfg.mk (sc_prohibit_sprintf): New rule.
(sc_prohibit_asprintf): Avoid false positives.
* docs/hacking.html.in (Printf-style functions): Document the
policy.
* HACKING: Regenerate.
* .x-sc_prohibit_sprintf: New exemptions.
* Makefile.am (syntax_check_exceptions): Ship new file.
* src/vbox/vbox_tmpl.c (vboxStartMachine, vboxAttachUSB): Use
virAsprintf instead.
* src/uml/uml_driver.c (umlOpenMonitor): Use snprintf instead.
* tools/virsh.c (cmdDetachInterface): Likewise.
* src/security/security_selinux.c (SELinuxGenSecurityLabel):
Likewise.
* src/openvz/openvz_driver.c (openvzDomainDefineCmd): Likewise,
and ensure large enough buffer.
.x-sc_prohibit_sprintf [new file with mode: 0644]
HACKING
Makefile.am
cfg.mk
docs/hacking.html.in
src/openvz/openvz_driver.c
src/security/security_selinux.c
src/uml/uml_driver.c
src/vbox/vbox_tmpl.c
tools/virsh.c