Bug 176053

Summary: [xen] [patch] i386: Correct wrong usage of vsnprintf()
Product: Base System Reporter: Christoph Mallon <christoph.mallon>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: 1.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
0001-i386-Correct-wrong-usage-of-vsnprintf.patch none

Description Christoph Mallon 2013-02-12 08:40:00 UTC
printk() uses snprintf() wrong, which may lead to a buffer overrun.
retval might be larger than the size of buf.
In this case buf[retval] = 0; will write beyond the end of buf.

Fix: Please apply the patch.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-02-17 22:39:23 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-xen

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:38 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:26 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>