[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150609180028.GT14071@sirena.org.uk>
Date: Tue, 9 Jun 2015 19:00:28 +0100
From: Mark Brown <broonie@...nel.org>
To: Stefan Wahren <stefan.wahren@...e.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, Joe Perches <joe@...ches.com>,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH V2] regulator: core: fix constraints debug output
On Wed, Jun 03, 2015 at 09:56:29PM +0000, Stefan Wahren wrote:
> The line buffer for constraints debug isn't big enough to hold the output
> in all cases. So fix the possible buffer overflow by the usage of the
> scnprintf().
If we know how much output we might produce then why not extend the
buffer so we don't need to cut it off? The defensive programming is
good but that seems a better fix.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists