zephyr/tests/net/lib
Jukka Rissanen d551565802 tests: net: coap: Fix uninitialized memory access
The options array was not initialized to 0 and the size of the
array was not set properly. This caused following error in valgrind

Conditional jump or move depends on uninitialised value(s)
   at 0x8056777: coap_find_options (coap.c:1096)
   by 0x804AEFF: test_parse_simple_pdu (main.c:455)
   by 0x80500E6: zephyr_app_main (main.c:1585)
   by 0x807E231: bg_thread_main (init.c:254)
   by 0x80842D7: _thread_entry (thread.c:201)
   by 0x8059618: posix_thread_starter (posix_core.c:301)
   by 0x40752C8: start_thread (in /usr/lib/libpthread-2.25.so)
   by 0x4182055: clone (in /usr/lib/libc-2.25.so)

Fixes #7447

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-05-14 14:54:07 +03:00
..
coap tests: net: coap: Fix uninitialized memory access 2018-05-14 14:54:07 +03:00
dns_packet tests: rename main test to main.c 2018-05-07 12:27:07 -04:00
dns_resolve tests: cleanup meta-data of various tests 2018-04-09 22:55:20 -04:00
http_header_fields tests: rename main test to main.c 2018-05-07 12:27:07 -04:00
mqtt_packet tests: enhance test meta-data/improve test naming 2018-05-07 12:27:07 -04:00
mqtt_publisher tests: cleanup meta-data of various tests 2018-04-09 22:55:20 -04:00
mqtt_subscriber tests: net: style, tag, and category fixes 2018-04-25 14:18:15 +05:30