Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: Keith Seitz <keiths@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 2/5] [gdb/remote] Fix stack overflow in parse_tracepoint_definition
Date: Tue, 24 Nov 2026 17:12:22 +0000	[thread overview]
Message-ID: <xhuyf5wxmtaq1.fsf@aburgess-thinkpadp1gen8.rmtgb.csb> (raw)
In-Reply-To: <xhuyf8q2ithj2.fsf@aburgess-thinkpadp1gen8.rmtgb.csb>

Andrew Burgess <aburgess@redhat.com> writes:

> Thanks for working on this.  I have a couple of really minor thoughts,
> see inline below.
>
> Keith Seitz <keiths@redhat.com> writes:
>
>>  	  if (*p == 'F')
>>  	    {
>>  	      type = bp_fast_tracepoint;
>
> Inside the F, S, and X handling there are some p++; lines.  These are
> fine as these are skipping over the F, S, and X characters which have
> just been checked.
>
> However, in the X case there is also this line:
>
>   p++;  /* skip a comma */
>
> which I think can become:
>
>   p = require (p, ',');
>
> maybe a test for this case could be added?

Ahh, just found this in a later patch in the series :)

Ignore this part then.

Thanks,
Andrew


  reply	other threads:[~2026-11-24 17:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12 17:41 [PATCH 0/5] tracepoint.c hardening against missing separators Keith Seitz
2026-11-12 17:41 ` [PATCH 1/5] [gdb/remote] Fix stack overflow in parse_tsv_definition Keith Seitz
2026-11-24 12:07   ` Andrew Burgess
2026-11-12 17:41 ` [PATCH 2/5] [gdb/remote] Fix stack overflow in parse_tracepoint_definition Keith Seitz
2026-11-24 14:45   ` Andrew Burgess
2026-11-24 17:12     ` Andrew Burgess [this message]
2026-11-24 19:28     ` Keith Seitz
2026-11-12 17:41 ` [PATCH 3/5] [gdb/remote] Harden parse_static_tracepoint_marker_definition Keith Seitz
2026-11-12 17:41 ` [PATCH 4/5] [gdb/remote] Harden comma separator in parse_tracepoint_definition Keith Seitz
2026-11-12 17:41 ` [PATCH 5/5] [gdb/remote] Harden parse_tracepoint_status Keith Seitz
2026-11-24 17:14 ` [PATCH 0/5] tracepoint.c hardening against missing separators Andrew Burgess
2026-11-25 17:38   ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xhuyf5wxmtaq1.fsf@aburgess-thinkpadp1gen8.rmtgb.csb \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox