• E
    maint: avoid remaining sprintf uses · e8aba782
    Eric Blake 提交于
    * 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.
    e8aba782
uml_driver.c 61.9 KB