From: William C. <wc...@us...> - 2018-08-06 14:06:42
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "oprofile". The branch, master has been updated via 457d33de89939ffaa523c2a6377ed7d1506ce255 (commit) from d4ad82b6eb29fbba1ac5f2598a1788024d9f3d48 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 457d33de89939ffaa523c2a6377ed7d1506ce255 Author: William Cohen <wc...@re...> Date: Fri Aug 3 10:10:12 2018 -0400 Handle empty event name spec gracefully for PPC During testing Michael Petlan found that the giving an empty event name in the event spec to operf on PPC machines would cause operf crash. Running the following following command would demonstrate this problem: operf -e : /bin/ls The problem was traced to event_name in _handle_powerpc_event_spec function having a length of 0. The strncmp using event_name in _handle_powerpc_event_spec would indicate a match and cause strncpy to be called to copy zero bytes. The zero length strncpy would crash operf. Added a check to make ensure that the string is non-zero length. Signed-off-by: William Cohen <wc...@re...> ----------------------------------------------------------------------- Summary of changes: libpe_utils/op_pe_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- oprofile |