public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix a couple undefined behaviors flagged by UBSan
@ 2022-04-01 20:22 Pedro Alves
  2022-04-01 20:22 ` [PATCH 1/2] gdb: Avoid undefined shifts Pedro Alves
  2022-04-01 20:22 ` [PATCH 2/2] Avoid undefined behavior in gdbscm_make_breakpoint Pedro Alves
  0 siblings, 2 replies; 4+ messages in thread
From: Pedro Alves @ 2022-04-01 20:22 UTC (permalink / raw)
  To: gdb-patches

Running the testuite against GDBserver with a GDB built with
--enable-ubsan, I noticed a few problems.  This mini-series fixes a
couple.

Pedro Alves (2):
  gdb: Avoid undefined shifts
  Avoid undefined behavior in gdbscm_make_breakpoint

 gdb/guile/scm-breakpoint.c        |  10 +--
 gdb/testsuite/gdb.base/bitops.exp | 139 ++++++++++++++++++++++++++++++
 gdb/valarith.c                    |  61 ++++++++++++-
 3 files changed, 201 insertions(+), 9 deletions(-)


base-commit: 801a7eab11e9050c64a229c6a24d2994df3ca0d4
-- 
2.26.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-04 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-01 20:22 [PATCH 0/2] Fix a couple undefined behaviors flagged by UBSan Pedro Alves
2022-04-01 20:22 ` [PATCH 1/2] gdb: Avoid undefined shifts Pedro Alves
2022-04-04 12:16   ` Pedro Alves
2022-04-01 20:22 ` [PATCH 2/2] Avoid undefined behavior in gdbscm_make_breakpoint Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).