Avatar for the esphome user
esphome
aioesphomeapi
BlogDocsChangelog

Bound plaintext varuint length and frame size to prevent buffer-growth DoS

#1651Merged
Comparing
fix/plaintext-frame-bounds
(
8f0c936
) with
main
(
e474ced
)
CodSpeed Performance Gauge
0%
Untouched
40

Benchmarks

40 total
test_list_entities_sensor_process_packet
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
+1%
25.5 µs25.2 µs
test_list_entities_climate_process_packet
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
+1%
28.4 µs28.1 µs
test_list_entities_typical_device_batch
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
+1%
55.3 µs54.9 µs
test_list_entities_climate_from_pb
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
+1%
274 µs272 µs
test_noise_make_packets[64]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
+1%
636.2 µs632.7 µs
test_list_entities_switch_from_pb
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
0%
64.7 µs64.4 µs
test_noise_messages[128]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_sending_empty_light_command_request
tests/benchmarks/test_requests.py
CodSpeed Performance Gauge
0%
43.3 µs43.2 µs
test_list_entities_binary_sensor_from_pb
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
0%
64.7 µs64.5 µs
test_noise_write_packets[1024]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
880.4 µs878.1 µs
test_list_entities_sensor_from_pb
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
0%
81.5 µs81.3 µs
test_noise_encrypt_cipher[16384]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
3.9 ms3.9 ms
test_switch_state_response
tests/benchmarks/test_state_messages.py
CodSpeed Performance Gauge
0%
56.9 µs56.7 µs
test_climate_state_response
tests/benchmarks/test_state_messages.py
CodSpeed Performance Gauge
0%
135.4 µs135.1 µs
test_noise_messages[0]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_noise_make_packets[16384]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
5.7 ms5.7 ms
test_noise_messages[64]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_list_entities_light_from_pb
tests/benchmarks/test_list_entities.py
CodSpeed Performance Gauge
0%
140.6 µs140.4 µs
test_noise_encrypt_cipher[0]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
312.9 µs312.5 µs
test_mixed_state_responses
tests/benchmarks/test_state_messages.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_noise_write_packets[16384]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
5.7 ms5.7 ms
test_noise_messages[16384]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
15 ms15 ms
test_noise_make_packets[1024]
tests/benchmarks/test_noise.py
CodSpeed Performance Gauge
0%
864.2 µs863.4 µs
test_sending_light_command_request_with_bool
tests/benchmarks/test_requests.py
CodSpeed Performance Gauge
0%
47.4 µs47.4 µs
test_sensor_state_response
tests/benchmarks/test_state_messages.py
CodSpeed Performance Gauge
0%
59.2 µs59.2 µs

Commits

Click on a commit to change the comparison range
Base
main
e474ced
-0.11%
Bound plaintext varuint length and frame size to prevent buffer-growth DoS
35bcb2b
24 hours ago
by bdraco
+0.16%
Merge branch 'main' into fix/plaintext-frame-bounds
bfd109b
23 hours ago
by bdraco
-0.23%
Address bluetoothbot review on plaintext frame bounds
7328cc5
23 hours ago
by bdraco
+0.05%
tests: clear singleton cache between tests
4992eee
23 hours ago
by bdraco
-0.13%
Address Copilot review on plaintext frame bounds
948c6b7
22 hours ago
by bdraco
+0.07%
tests: cover incomplete preamble varuint path
8f0c936
22 hours ago
by bdraco
© 2026 CodSpeed Technology
Home Terms Privacy Docs