i3status/src
Samuel Holland 585d0700c7 avoid out-of-bounds read after invalid %cpu conversion
In the case where no CPU number is given, skipping a character of
padding actually skips the null terminator, causing further iterations
through the loop to read out of bounds. Have sscanf() return the number
of characters read, instead of reconstructing it from the CPU number.

This was observed as a failure in test 024-cpu-usage-invalid-cpu.
2020-03-28 21:02:02 -05:00
..
auto_detect_format.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
first_network_device.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
format_placeholders.c use format_placeholder for battery 2020-02-10 21:05:18 +01:00
general.c Mention the return value of the slurp function and the implications 2019-09-19 15:48:59 +02:00
output.c use format_placeholder for battery 2020-02-10 21:05:18 +01:00
print_battery_info.c use format_placeholder for battery 2020-02-10 21:05:18 +01:00
print_cpu_temperature.c use format_placeholder for cpu_temperature 2020-02-18 17:51:12 +01:00
print_cpu_usage.c avoid out-of-bounds read after invalid %cpu conversion 2020-03-28 21:02:02 -05:00
print_ddate.c use exact size for known strings 2020-02-21 15:23:37 +01:00
print_disk_info.c use format_placeholder for disk.info 2020-03-03 21:32:49 +01:00
print_eth_info.c use format_placeholder for eth.info 2020-03-03 21:31:56 +01:00
print_file_contents.c print_file_contents: allocate enough to include \0 2019-06-10 16:36:18 +02:00
print_ip_addr.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_ipv6_addr.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_load.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_mem.c print_mem: Fix overflow on 32-bit systems 2019-11-24 23:41:46 +01:00
print_path_exists.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_run_watch.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_time.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
print_volume.c print_volume: Native NetBSD audio support 2020-03-11 23:29:56 +00:00
print_wireless_info.c add wireless format-options 2020-02-10 22:33:20 +01:00
process_runs.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00
pulse.c Switch to autotools (#316) 2019-01-23 08:56:40 +01:00