1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/utils
Simon Tatham 5388e5f7ee Fix use-after-free in locale-based stripctrl.
We call setlocale() at the start of the function to get the current
LC_CTYPE locale, then set it to what we need during the function, and
then call setlocale() at the end to put it back again. But the middle
call is allowed to invalidate the pointer returned from the first, so
we have to save it in our own allocated storage until the end of the
function.

This bit me during development just now, and I was surprised that it
hadn't come up before! But I suppose this is one of those things
that's only _allowed_ to fail, and need not in all circumstances -
perhaps it depends on what your LC_CTYPE was set to before.
2022-04-22 15:19:25 +01:00
..
antispoof.c Marshalling macros put_dataz and put_datalit. 2021-11-19 15:09:17 +00:00
backend_socket_log.c Move some more files into subdirectories. 2021-11-23 18:52:15 +00:00
base64_decode_atom.c
base64_encode_atom.c
bufchain.c Add some more bufchain_try_* functions. 2021-11-19 10:35:38 +00:00
buildinfo.c Add more _MSC_VER translations. 2022-01-29 18:36:48 +00:00
burnstr.c
chomp.c
CMakeLists.txt Add a manual single-char UTF-8 decoder. 2022-03-12 18:51:21 +00:00
conf_dest.c
conf_launchable.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
conf.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
ctrlparse.c
debug.c
decode_utf8_to_wchar.c Add a manual single-char UTF-8 decoder. 2022-03-12 18:51:21 +00:00
decode_utf8.c Add a manual single-char UTF-8 decoder. 2022-03-12 18:51:21 +00:00
default_description.c Add 'description' methods for Backend and Plug. 2021-10-24 10:48:25 +01:00
dup_mb_to_wc.c Remove a redundant file in utils. 2021-11-30 18:48:06 +00:00
dup_wc_to_mb.c Add utility function dup_wc_to_mb. 2022-03-12 18:51:21 +00:00
dupcat.c
dupprintf.c
dupstr.c
encode_utf8.c
encode_wide_string_as_utf8.c win_set_[icon_]title: send a codepage along with the string. 2021-10-16 14:00:46 +01:00
fgetline.c
host_strchr_internal.c Build various unit-test main() programs in utils. 2021-04-18 08:30:44 +01:00
host_strchr.c
host_strcspn.c
host_strduptrim.c
host_strrchr.c
log_proxy_stderr.c Move some more files into subdirectories. 2021-11-23 18:52:15 +00:00
ltime.c
make_spr_sw_abort_static.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
marshal.c marshal.[ch]: remove redundant declaration. 2021-11-19 15:09:17 +00:00
memory.c
memxor.c
null_lp.c
nullseat.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
nullstrcmp.c
out_of_memory.c
parse_blocksize.c
prompts.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
ptrlen.c Remove a redundant #include. 2021-11-30 18:42:21 +00:00
read_file_into.c
seat_connection_fatal.c
sessprep.c
sk_free_peer_info.c
smemclr.c Fix typo in comment. 2021-04-19 17:14:01 +01:00
smemeq.c
spr_get_error_message.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
ssh2_pick_fingerprint.c
sshutils.c Move the SSH implementation into its own subdirectory. 2021-04-22 18:09:13 +01:00
strbuf.c Generalise strbuf_catf() into put_fmt(). 2021-11-19 11:32:47 +00:00
string_length_for_printf.c
stripctrl.c Fix use-after-free in locale-based stripctrl. 2022-04-22 15:19:25 +01:00
tempseat.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
tree234.c Fix a batch of typos in comments and docs. 2022-01-03 06:40:51 +00:00
utils.h
validate_manual_hostkey.c Fix manual host key validation. 2021-10-25 18:12:21 +01:00
version.c
wcwidth.c wcwidth.c: update to Unicode 14.0.0. 2021-10-10 14:55:15 +01:00
wildcard.c Build various unit-test main() programs in utils. 2021-04-18 08:30:44 +01:00
write_c_string_literal.c Remove duplicated string-literal formatter in Telnet proxy. 2021-12-22 15:05:04 +00:00
x11_dehexify.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00
x11_identify_auth_proto.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00
x11_make_greeting.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00
x11_parse_ip.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00
x11authfile.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00
x11authnames.c Break up x11fwd.c. 2021-04-18 08:18:27 +01:00