lkml.org 
[lkml]   [2018]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 02/21] lib/vsprintf: Print time and date in human readable format via %pt
On Tue, Dec 04, 2018 at 05:16:58PM +0100, Geert Uytterhoeven wrote:
> On Tue, Dec 4, 2018 at 5:12 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Tue, Dec 04, 2018 at 02:30:28PM +0100, Petr Mladek wrote:
> > > On Thu 2018-11-29 12:59:40, Andy Shevchenko wrote:
> > > > There are users which print time and date represented by content of
> > > > struct rtc_time in human readable format.
> > > >
> > > > Instead of open coding that each time introduce %ptR[dt][r] specifier.
> >
> > > > +static void __init
> > > > +struct_rtc_time(void)
> > > > +{
> > > > +}
> > >
> > > Just by chance, do you have any plans to add the test code? ;-)
> > >
> > > I understand that you did now want to spend time on it before
> > > the real change was accepted.
> >
> > You see, there were several iterations with no consensus on everything:
> > specifier format changed 3 times, for example.
> >
> > But it might be good idea to eventually add couple simple tests at some point.
> >
> > Is it a show stopper?
>
> Can the user trigger formatting, and exploit a bug in the formatting code?

Might happen, it's a software at the end.
Do we need to revisit all formatting specifiers right now?

In any case, to be productive out of this discussion, I would like to gather
test cases you want to see.

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2018-12-04 17:39    [W:0.072 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site