]> git.ipfire.org Git - thirdparty/curl.git/commit
rand: fix 'alnum': array is too small to include a terminating null character
authorDaniel Stenberg <daniel@haxx.se>
Sat, 16 Sep 2023 20:37:28 +0000 (22:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 17 Sep 2023 15:43:52 +0000 (17:43 +0200)
commit706eff9f1f144e6c9a1ed9c9646007760921cf67
tree9a602d41336f32aca1e824cf22630ca53d047f13
parentadbb7a030dc4d9008a8e28714cd3526db327f716
rand: fix 'alnum': array is too small to include a terminating null character

It was that small on purpose, but this change now adds the null byte to
avoid the error.

Follow-up to 3aa3cc9b052353b1

Reported-by: Dan Fandrich
Ref: #11838
Closes #11870
lib/rand.c