Avatar for the Bluetooth-Devices user
Bluetooth-Devices
bluetooth-data-tools
BlogDocsChangelog

fix: reject data where the splice start position would be greater than end of the data

#132Merged
Comparing
fix_split_point_gt_end
(
b11c12b
) with
main
(
5249fe9
)
CodSpeed Performance Gauge
+1%
Improvements
0
Regressions
0
Untouched
5
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_parse_advertisement_data_tuple
tests/benchmarks/test_parse_gap_tuple.py::test_parse_advertisement_data_tuple
CodSpeed Performance Gauge
+2%
18.9 µs
18.5 µs
test_parse_int_to_bluetooth_address_cached
tests/benchmarks/test_int_to_bluetooth_address.py::test_parse_int_to_bluetooth_address_cached
CodSpeed Performance Gauge
+1%
16.5 µs
16.3 µs
test_parse_advertisement_data
tests/benchmarks/test_parse_gap.py::test_parse_advertisement_data
CodSpeed Performance Gauge
+1%
24.4 µs
24.3 µs
test_parse_int_to_bluetooth_address_uncached
tests/benchmarks/test_int_to_bluetooth_address.py::test_parse_int_to_bluetooth_address_uncached
CodSpeed Performance Gauge
0%
23 µs
23 µs
test_parse_advertisement_data_tuple_uncached
tests/benchmarks/test_parse_gap_tuple.py::test_parse_advertisement_data_tuple_uncached
CodSpeed Performance Gauge
0%
94.8 µs
94.8 µs

Commits

Click on a commit to change the comparison range
Base
main
5249fe9
0%
fix: reject data where the length is less than point the data is spliced We could end up with with the splice position being after the end so it seg fault
9306f39
17 days ago
by bdraco
0%
chore: add more data
274cc45
17 days ago
by bdraco
0%
chore: add a lot more cases
adde494
17 days ago
by bdraco
0%
chore: add a lot more cases
a180ba5
17 days ago
by bdraco
0%
chore: add a lot more cases
b11c12b
17 days ago
by bdraco
© 2025 CodSpeed Technology
Home Terms PrivacyDocs