lkml.org 
[lkml]   [2015]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-06-09 20:21    [W:0.057 / U:1.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site