]> 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>
Thu, 19 Jul 2018 06:45:14 +0000 (09:45 +0300)
commit5f4b151876a4c0222c9845c3430d242a65a33401
treede5e664f2d92f205513dab64ec56026ab0baab9c
parent2d4a975cacd3e1a73f8c348be002c18342e7717a
Fix 'pointer arithmetic with NULL' code defect in print_callers
(a cherry-pick of commit 18fda2a1 from 'release-7_4')

* 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