time: strftime_l: Avoid an unbounded alloca.
commit79b2667d1eb06c6503c22f2f323c1c574ac5917b
authorJoe Simmons-Talbott <josimmon@redhat.com>
Tue, 23 May 2023 19:41:29 +0000 (23 15:41 -0400)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 29 May 2023 13:09:15 +0000 (29 09:09 -0400)
tree7003929d9ab695638e3685e228d67950814d448b
parented2f9dc9420c4c61436328778a70459d0a35556a
time: strftime_l: Avoid an unbounded alloca.

Avoid possible stack overflow by removing alloca() and converting to
wide characters within the buffer.

Suggested-by: Paul Eggert <eggert@cs.ucla.edu>
time/strftime_l.c