Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-13 Thread Brian Inglis
On 2023-11-13 09:42, Corinna Vinschen wrote: Hi Pedro, On Nov 11 18:29, Pedro Luis Castedo Cepeda wrote: OK. It's not a newlib problem but a GLib one as it is relaying on common but non-standard strftime implementation details. I attach a short program more focused in g_date_strftime

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-13 Thread Corinna Vinschen
Hi Pedro, On Nov 11 18:29, Pedro Luis Castedo Cepeda wrote: > OK. It's not a newlib problem but a GLib one as it is relaying on common but > non-standard strftime implementation details. > > I attach a short program more focused in g_date_strftime implementation so > it can be evaluated if it

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-11 Thread Pedro Luis Castedo Cepeda
El 11/11/2023 a las 6:57, Brian Inglis escribió: On 2023-11-10 10:44, Pedro Luis Castedo Cepeda wrote: El 10/11/2023 a las 11:16, Corinna Vinschen escribió: On Nov  9 23:17, Brian Inglis wrote: On 2023-11-09 12:04, Pedro Luis Castedo Cepeda wrote: - Prevent strftime to parsing format string

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-10 Thread Brian Inglis
On 2023-11-10 10:44, Pedro Luis Castedo Cepeda wrote: El 10/11/2023 a las 11:16, Corinna Vinschen escribió: On Nov  9 23:17, Brian Inglis wrote: On 2023-11-09 12:04, Pedro Luis Castedo Cepeda wrote: - Prevent strftime to parsing format string beyond its end when     it finish with "%E" or

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-10 Thread Pedro Luis Castedo Cepeda
El 10/11/2023 a las 11:16, Corinna Vinschen escribió: On Nov 9 23:17, Brian Inglis wrote: On 2023-11-09 12:04, Pedro Luis Castedo Cepeda wrote: - Prevent strftime to parsing format string beyond its end when it finish with "%E" or "%O". --- newlib/libc/time/strftime.c | 2 ++ 1 file

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-10 Thread Corinna Vinschen
On Nov 9 23:17, Brian Inglis wrote: > On 2023-11-09 12:04, Pedro Luis Castedo Cepeda wrote: > > - Prevent strftime to parsing format string beyond its end when > >it finish with "%E" or "%O". > > --- > > newlib/libc/time/strftime.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff

Re: [PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-09 Thread Brian Inglis
On 2023-11-09 12:04, Pedro Luis Castedo Cepeda wrote: - Prevent strftime to parsing format string beyond its end when it finish with "%E" or "%O". --- newlib/libc/time/strftime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c

[PATCH] fix(libc): Fix handle of %E & %O modifiers at end of format string

2023-11-09 Thread Pedro Luis Castedo Cepeda
- Prevent strftime to parsing format string beyond its end when it finish with "%E" or "%O". --- newlib/libc/time/strftime.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 56f227c5f..c4e9e45a9 100644 ---