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

unittests/tests-ieee802154: remove stack_smasher from unitest

test_ieee802154_set_frame_hdr_flags0_non_beacon_non_ack
buffer given to ieee802154_set_frame_hdr has to be at least 2 bytes
see <RIOT>/sys/net/link_layer/ieee802154/ieee802154.c l32
This commit is contained in:
Karl Fessel 2021-03-12 19:34:13 +01:00
parent a6bf444489
commit 21ce589bec

View File

@ -44,10 +44,10 @@ static void test_ieee802154_set_frame_hdr_flags0_non_beacon_non_ack(void)
const le_uint16_t src_pan = byteorder_htols(0);
const le_uint16_t dst_pan = byteorder_htols(0);
const uint8_t flags = IEEE802154_FCF_TYPE_DATA;
uint8_t res;
uint8_t res[2];
TEST_ASSERT_EQUAL_INT(0,
ieee802154_set_frame_hdr(&res, NULL, 0,
ieee802154_set_frame_hdr(res, NULL, 0,
NULL, 0,
src_pan, dst_pan,
flags, TEST_UINT8));