Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Cc: Kevin Buettner <kevinb@redhat.com>
Subject: [PATCH v2 0/1] PR gdb/server/34969
Date: Fri, 20 Nov 2026 01:14:04 -0700	[thread overview]
Message-ID: <20261120084131.659727-2-kevinb@redhat.com> (raw)

This is a fix for https://sourceware.org/bugzilla/show_bug.cgi?id=34969 .

Changes v1 -> v2:

- Incorporated private feedback from Keith Seitz; a more precise
  technique is used to determine whether the length specified
  for hex encoded data is over-long.
- For tracepoints, v1 silently dropped malformed conditions and
  actions.  v2 does not; it causes an error reply to be sent back
  to gdb.
- gdbserver code implementing support for Z0 packets was revised to
  also send error replies.
- Test case entirely rewritten by me. (The v1 test case was LLM generated.)

Kevin Buettner (1):
  gdbserver: reject malformed agent expressions in gdb_parse_agent_expr

 .../gdb.server/agent-expr-length.exp          | 215 ++++++++++++++++++
 gdbserver/ax.cc                               |  13 +-
 gdbserver/ax.h                                |   4 +-
 gdbserver/mem-break.cc                        |  10 +-
 gdbserver/server.cc                           |  27 ++-
 gdbserver/tracepoint.cc                       |  25 +-
 6 files changed, 272 insertions(+), 22 deletions(-)
 create mode 100644 gdb/testsuite/gdb.server/agent-expr-length.exp

-- 
2.56.1


             reply	other threads:[~2026-11-20  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  8:14 Kevin Buettner [this message]
2026-11-20  8:14 ` [PATCH v2 1/1] gdbserver: reject malformed agent expressions in gdb_parse_agent_expr Kevin Buettner
2026-11-22 21:19   ` Andrew Burgess
2026-11-24 18:56     ` Kevin Buettner

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=20261120084131.659727-2-kevinb@redhat.com \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /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