From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 33) id 9E7432BC9; Mon, 23 Apr 2018 12:35:49 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 23 Apr 2018 10:35:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: eventdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: harry.van.haaren@intel.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- 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 cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://dpdk.org/tracker/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 28] event/octeontx: snprintf() overflow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 10:35:49 -0000 https://dpdk.org/tracker/show_bug.cgi?id=3D28 Bug ID: 28 Summary: event/octeontx: snprintf() overflow Product: DPDK Version: unspecified Hardware: All OS: All Status: CONFIRMED Severity: normal Priority: Normal Component: eventdev Assignee: dev@dpdk.org Reporter: harry.van.haaren@intel.com CC: pbhagavatula@caviumnetworks.com Target Milestone: --- Compiling latest git with Meson and GCC 5.4, it prints a warning for always overflowing a destination buffer. [1/15] Compiling C object 'drivers/tmp_rte_..._event@sta/event_octeontx_timvf_evdev.c.o' In file included from /usr/include/stdio.h:936:0, from ../lib/librte_eal/common/include/rte_log.h:21, from ../lib/librte_eal/common/include/rte_debug.h:17, from ../lib/librte_eal/common/include/generic/rte_cycles.h= :16, from ../lib/librte_eal/common/include/arch/x86/rte_cycles.h:13, from ../drivers/event/octeontx/timvf_evdev.h:10, from ../drivers/event/octeontx/timvf_evdev.c:6: In function =E2=80=98snprintf=E2=80=99, inlined from =E2=80=98timvf_ring_create=E2=80=99 at ../drivers/event/octeontx/timvf_evdev.c:298:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: warning: call to __builtin___snprintf_chk will always overflow destination buffer return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, /* Declaration of pool_name */ char pool_name[25]; ... /* offending line, note the mismatch in size 25 and 30 */ snprintf(pool_name, 30, "timvf_chunk_pool%d", timr->tim_ring_id); Commited in f874c1eb1519185feba05a0542413492e5f56ae9 --=20 You are receiving this mail because: You are the assignee for the bug.=