Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1714213

Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error

From Andi Kleen <ak@linux.intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error
Date 2017-08-17 19:10 +0200
Message-ID <ufwsW-7Rh-23@gated-at.bofh.it> (permalink)
References <ufeFH-4jg-5@gated-at.bofh.it> <ufeFH-4jg-3@gated-at.bofh.it> <ufuUa-6IK-7@gated-at.bofh.it> <ufw9A-7up-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> So it will _not_ set to null a member that it doesn't have, i.e. the
> minimal fix is to just have the hunks below, making sure that the error
> field is present in both structs. No need to set
> parse_event_terms->error to anything, it will be set to null since other
> fields are set to something.

Right but I want to see the error too. That is why I added a real 
error handler.

-Andi

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] perf, tools: Avoid segfault on alias parse error Andi Kleen <andi@firstfloor.org> - 2017-08-17 00:10 +0200
  Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-17 17:30 +0200
    Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Andi Kleen <andi@firstfloor.org> - 2017-08-17 17:40 +0200
      Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-17 18:30 +0200
        Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Andi Kleen <ak@linux.intel.com> - 2017-08-17 19:10 +0200
    Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-17 18:50 +0200
      Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Andi Kleen <ak@linux.intel.com> - 2017-08-17 19:10 +0200
        Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-17 19:30 +0200
          Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error Jiri Olsa <jolsa@redhat.com> - 2017-08-22 09:30 +0200

csiph-web