Parent: 88c189479f128f649d9589fc828c74452e363b6f
Author: Marcin Kraglak <marcin.kraglak@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-03-06 11:19:34
Tree: ac96e2cef55e15631ba6c15772c3eb58a7a3593a
shared/hfp: Don't try read uninitialized data in ringbuffer Don't try to read uninitialized value if '\r' was not found. This is call stack from test-hfp run with valgrind: /hfp/test_fragmented_1: ==24869== Conditional jump or move depends on uninitialised value(s) ==24869== at 0x400A5E4: memchr (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==24869== by 0x804D24D: can_read_data (hfp.c:359) ==24869== by 0x804A6E2: read_callback (io-glib.c:168) ==24869== by 0x4108BFD5: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x410470E5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x41047497: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x41047912: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x8049EE0: execute_context (test-hfp.c:186) ==24869== by 0x4106CBC1: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x4106CD5B: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x4106D0E0: g_test_run_suite (in /usr/lib/libglib-2.0.so.0.3600.4) ==24869== by 0x4106D13C: g_test_run (in /usr/lib/libglib-2.0.so.0.3600.4)
Diffstat
| M | src/shared/hfp.c | | | 6 | ++++++ |
1 files changed, 6 insertions(+), 0 deletions(-)