1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Leandro Lanzieri
9e2e99fafb
unittests/clif: add attribute test cases
- missing value in attribute with separator should fail
- single-quoted value in attribute should fail
- empty value in quoted attribute should fail
2021-03-05 16:47:48 +01:00
Sören Tempel
0d141bf93a clif: Don't access any data if input is empty
This is relevant as clif_decode_link may invoke clif_get_attr with
input_len == 0.
2021-02-08 13:42:18 +01:00
Sören Tempel
767e700a5f clif: After incrementing pos, make sure it is still in bounds
While the for-loop condition does contain a bounds check, the pointer is
independently increment in the for-loop body. This increment therefore
requires a separate bounds check. Otherwise, the parsing loop may access
data outside the given buffer boundaries.
2021-02-08 11:29:44 +01:00
d1fe44fbbb
tests/unittests/tests-clif: use ARRAY_SIZE macro 2021-01-08 14:37:33 +01:00
Leandro Lanzieri
3ca6a28e04 tests: Add unit tests for clif module 2019-10-04 11:35:52 +02:00