mirror of git://git.sysmocom.de/ofono
unit: Avoid use of uninitialised data in test-simutil
GTest: run: /testsimutil/ber tlv encode EFpnn ==16777== Conditional jump or move depends on uninitialised value(s) ==16777== at 0x4068CB: ber_tlv_iter_next (simutil.c:369) ==16777== by 0x406C39: ber_tlv_find_by_tag (simutil.c:483) ==16777== by 0x407E1D: sim_eons_add_pnn_record (simutil.c:1027) ==16777== by 0x402C39: test_ber_tlv_builder_efpnn (test-simutil.c:181) ==16777== by 0x4EA3A80: g_test_run_suite_internal ==16777== by 0x4EA3F9A: g_test_run_suite ==16777== by 0x4EA3FD0: g_test_run ==16777== by 0x4042FA: main (test-simutil.c:518)
This commit is contained in:
parent
1cfb17f62c
commit
1878f6954d
|
@ -178,12 +178,12 @@ static void test_ber_tlv_builder_efpnn(void)
|
|||
ber_tlv_builder_optimize(&builder, NULL, NULL);
|
||||
|
||||
eons_info = sim_eons_new(1);
|
||||
sim_eons_add_pnn_record(eons_info, 1, efpnn0, sizeof(efpnn0));
|
||||
sim_eons_add_pnn_record(eons_info, 1, efpnn0, 8 + 10);
|
||||
g_assert(!sim_eons_pnn_is_empty(eons_info));
|
||||
sim_eons_free(eons_info);
|
||||
|
||||
eons_info = sim_eons_new(1);
|
||||
sim_eons_add_pnn_record(eons_info, 1, efpnn1, sizeof(efpnn1));
|
||||
sim_eons_add_pnn_record(eons_info, 1, efpnn1, 8 + 6);
|
||||
g_assert(!sim_eons_pnn_is_empty(eons_info));
|
||||
sim_eons_free(eons_info);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue