Bug 176053 - [xen] [patch] i386: Correct wrong usage of vsnprintf()
Summary: [xen] [patch] i386: Correct wrong usage of vsnprintf()
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 08:40 UTC by Christoph Mallon
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
0001-i386-Correct-wrong-usage-of-vsnprintf.patch (1.10 KB, patch)
2013-02-12 08:40 UTC, Christoph Mallon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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