mirror of https://gerrit.osmocom.org/libosmocore
tests: Fix the sms_test and use the right array
It started to behave weird on Debian Testing (GCC 4.8), I compiled it with address sanitizer support and set a breakpoint in __asan_report_error to get a backtrace.
This commit is contained in:
parent
5b6416a729
commit
bb9f89745a
|
@ -371,7 +371,7 @@ int main(int argc, char** argv)
|
|||
memset(result, 0xaa, sizeof(result));
|
||||
|
||||
for (buffer_size = 1;
|
||||
buffer_size < test_encode[i].expected_septet_length + 1
|
||||
buffer_size < test_decode[i].expected_septet_length + 1
|
||||
&& buffer_size < sizeof(result) - 1;
|
||||
++buffer_size)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue