]> granicus.if.org Git - gc/commit
Fix 'pointer arithmetic with NULL' code defect in print_callers
authorIvan Maidanski <ivmai@mail.ru>
Wed, 11 Jul 2018 06:07:30 +0000 (09:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Jul 2018 07:24:30 +0000 (10:24 +0300)
commit18fda2a134432ec412e8294712376a06cd60d61e
tree1a2e8a1a1b7768771983aad252015eec8ef3ff95
parent50789b323a0ade16a8a69d22a2736e43cc0cd6b3
Fix 'pointer arithmetic with NULL' code defect in print_callers

* os_dep.c [NEED_CALLINFO && LINUX && !SMALL_CONFIG] (GC_print_callers):
If nl is null then pass result_len (instead of nl-result_buf) to strncmp;
adjust code indentation.
os_dep.c