[PATCH 13/15] RFC: lib: Support a binary prefix 0y
Simon Glass
sjg at chromium.org
Fri Jul 23 23:41:05 CEST 2021
Hi Wolfgang,
On Fri, 23 Jul 2021 at 00:55, Wolfgang Denk <wd at denx.de> wrote:
>
> Dear Simon,
>
> In message <CAPnjgZ1sCK0_3uiGcQPXBUyGoUmOPgbBDP7TNoekWeY=sa7Ssw at mail.gmail.com> you wrote:
> >
> > > Drop? AFAICT we never supported octal. Something like "md 040" will
> > > start dumping at 0x00000040, right?
> >
> > There are quite a few places where simple_strtoul() is called with a
> > base of 0. In that case, if the string starts with 0 it is interpreted
> > as octal.
>
> That's a bug, then.
If so it is a 19-year-old bug: (was lib_generic/vsprintc.c)
153d511e369 Initial revision
Regards,
Simon
More information about the U-Boot
mailing list