Re: [PATCH] perf auxtrace: Fix potential null pointer dereference

2021-04-20 Thread Adrian Hunter
On 20/04/21 6:15 pm, Leo Yan wrote: > In the function auxtrace_parse_snapshot_options(), the callback pointer > "itr->parse_snapshot_options" can be NULL if it has not been set during > the AUX record initialization. This can cause tool crashing if the > callback pointer

[PATCH] perf auxtrace: Fix potential null pointer dereference

2021-04-20 Thread Leo Yan
In the function auxtrace_parse_snapshot_options(), the callback pointer "itr->parse_snapshot_options" can be NULL if it has not been set during the AUX record initialization. This can cause tool crashing if the callback pointer "itr->parse_snapshot_options" is dereferenced without performing NULL