Teufelchen1
8c295ab7cf
sys/clif: Fixing out of bounds read under certain conditions
2023-02-23 15:45:03 +01:00
Karl Fessel
54ada3685a
tests: add missing includes
2022-11-22 13:39:35 +01:00
Karl Fessel
c29d2f1afb
test/unittest: cleanup most vera++ complains
2022-10-27 16:31:59 +02:00
Teufelchen1
499b635ae9
sys/clif: Fixing out of bounds read under certain conditions
2022-10-26 13:44:01 +02:00
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