diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-23 17:40:24 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-23 17:40:24 +0100 |
commit | 155a1ec5fb27dcbbc2e6464bc6e5d8b08c0b03e5 (patch) | |
tree | 5d96ee61f3abcab54ceb23e49b0e169699fdf093 /newlib/libc/stdio/asniprintf.c | |
parent | 117737a7fa6c8611d049f74dd9407ba5ab1ca425 (diff) | |
download | cygnal-155a1ec5fb27dcbbc2e6464bc6e5d8b08c0b03e5.tar.gz cygnal-155a1ec5fb27dcbbc2e6464bc6e5d8b08c0b03e5.tar.bz2 cygnal-155a1ec5fb27dcbbc2e6464bc6e5d8b08c0b03e5.zip |
Allocate temporary TOKEN_GROUP arrays using TLS
A user token can be up to 64K in size. The group list might take a lot
of that so use tmp_pathbuf allocated space rather than stack space
allocted via alloca. In create_token the TOKEN_GROUP was allocated via
malloc, but the code is needlessly complicated. Simplify by using
tmp_pathbuf as well.
* sec_auth.cc (verify_token): Allocate TOKEN_GROUP via tmp_pathbuf.
(create_token): Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdio/asniprintf.c')
0 files changed, 0 insertions, 0 deletions