From nobody Sun Jun 12 15:33:39 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5B8428446AB for ; Sun, 12 Jun 2022 15:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LLdyX03d8z4R2Y for ; Sun, 12 Jun 2022 15:33:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D791623F0F for ; Sun, 12 Jun 2022 15:33:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25CFXddc031777 for ; Sun, 12 Jun 2022 15:33:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25CFXdh6031776 for bugs@FreeBSD.org; Sun, 12 Jun 2022 15:33:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264636] staging: vc04_services: Use scnprintf() for avoiding potential buffer overflow Date: Sun, 12 Jun 2022 15:33:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xiaohuizhang@ruc.edu.cn X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655048020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4n33do+KBvv3w34f3G8SPN5yWrMpJH1TNggxchLO+qE=; b=YdDjLvlIlhNrlIlQvnpmBDPKtIci7/3kSTFa7E2oFDLlXdI6DDvkLSv4b2oEKyvCH6dP26 Ev8Sv2uJ/JYmakpvN6mHXBlTL2drZEtV5TmgpkYnoOuiii2FFglMueIUMsyasP63O8DqzS x7zOZbvQz2oSRm3pw8erYNw2DXZU6xbL60gkBVAAiVbGSnZqIQI2vwNAjFX4HtofW7MwE1 BKXBl3DqSuu5CgPWSaBUEuIKn9UR5o7oz3weUEovmdr+nAXTYeLZRHlHDc6WJTakAuwn/p Zu2KDHuX0eT04sw+GriPkJ9N4Z4SUd3rimuDkg/uTZoT1or9jKJ0DMznoPW2Ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655048020; a=rsa-sha256; cv=none; b=sacDMDnvQpcecHJgLwC5H97XyES/oqqdJ0rQNjV/8AOlalSj99/8AVgiHbr3i16zCNwzDx XhwcKkm3DDDjVtn9u3ZBYEqSJyGqieZIAdoob6ynskPWKPkm4+fg4Dk8QpNaVB/uQKiSyL TUSBE7pnEN91EiLQPBS3F+ch0GmLI1vQTHvH+Ww1h/2vpupc1T6HQudRbK3NcS5tm4VIWM pYFHiuH42NAruZB4KTYYW5kVY1eP9lNLeQjHgrK6qVVcWVOf2WQ/GYURL5OvHGOCr0Vuqc 3I/ObY9Lv0rRsBw5eC0P/K/nU2IuYCZ8F3u+JVhKih330sNRe962c019lcJ2qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264636 Bug ID: 264636 Summary: staging: vc04_services: Use scnprintf() for avoiding potential buffer overflow Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: xiaohuizhang@ruc.edu.cn Created attachment 234643 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234643&action= =3Dedit a possible patch Since snprintf() returns the would-be-output size instead of the=20 actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). --=20 You are receiving this mail because: You are the assignee for the bug.=