Re: [PATCH 2/4] Staging: most: fix snprintf() is printing too much

2015-07-30 Thread Christian Gromm
On Thu, 30 Jul 2015 11:28:43 +0300 Dan Carpenter wrote: > On Thu, Jul 30, 2015 at 09:05:39AM +0200, Christian Gromm wrote: > > On Wed, 29 Jul 2015 11:53:34 +0530 > > Sudip Mukherjee wrote: > > > > > On Tue, Jul 28, 2015 at 05:16:09PM +0200, Christian Gromm wrote: > > > > This patch prevents snp

Re: [PATCH 2/4] Staging: most: fix snprintf() is printing too much

2015-07-30 Thread Dan Carpenter
On Thu, Jul 30, 2015 at 09:05:39AM +0200, Christian Gromm wrote: > On Wed, 29 Jul 2015 11:53:34 +0530 > Sudip Mukherjee wrote: > > > On Tue, Jul 28, 2015 at 05:16:09PM +0200, Christian Gromm wrote: > > > This patch prevents snprintf from exceeding a given buffer size. > > > > > > Reported-by: Da

Re: [PATCH 2/4] Staging: most: fix snprintf() is printing too much

2015-07-30 Thread Christian Gromm
On Wed, 29 Jul 2015 11:53:34 +0530 Sudip Mukherjee wrote: > On Tue, Jul 28, 2015 at 05:16:09PM +0200, Christian Gromm wrote: > > This patch prevents snprintf from exceeding a given buffer size. > > > > Reported-by: Dan Carpenter > > Signed-off-by: Christian Gromm > > --- > > > - snp

Re: [PATCH 2/4] Staging: most: fix snprintf() is printing too much

2015-07-28 Thread Sudip Mukherjee
On Tue, Jul 28, 2015 at 05:16:09PM +0200, Christian Gromm wrote: > This patch prevents snprintf from exceeding a given buffer size. > > Reported-by: Dan Carpenter > Signed-off-by: Christian Gromm > --- > - snprintf(devnod_buf, PAGE_SIZE, "%s-%s", mdev, mdev_ch); > + snpr

[PATCH 2/4] Staging: most: fix snprintf() is printing too much

2015-07-28 Thread Christian Gromm
This patch prevents snprintf from exceeding a given buffer size. Reported-by: Dan Carpenter Signed-off-by: Christian Gromm --- drivers/staging/most/mostcore/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/mostcore/core.c b/drivers/staging/most