Date: Sun, 03 Jul 2016 20:06:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210798] devel/gdb: compile-loc2c.c's do_compile_dwarf_expr_to_c( . . . ) uses uoffset += . . . with uoffset uninitialized as of -r417989 Message-ID: <bug-210798-13-SjXS1oKRVI@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-210798-13@https.bugs.freebsd.org/bugzilla/> References: <bug-210798-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210798 --- Comment #1 from Mark Millard <markmi@dsl-only.net> --- (In reply to Mark Millard from comment #0) Another compiler-reported uninitialized value use follows. /usr/obj/portswork/usr/ports/devel/gdb/work/gdb-7.11.1/gdb/rs6000-tdep.c (n= ote ra initialzxiation status): static int ppc_process_record_op31 (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr, uint32_t insn) { . . . ULONGEST rb, ra, xer; . . . switch (ext & 0x1ff) { . . . case 1014: /* Data Cache Block set to Zero */ . . . if (PPC_RA (insn) !=3D 0) regcache_raw_read_unsigned (regcache, tdep->ppc_gp0_regnum + PPC_RA (insn), &= ra); . . . ea =3D (ra + rb) & ~((ULONGEST) (at_dcsz - 1)); record_full_arch_list_add_mem (ea, at_dcsz); . . . That last "ra" is always used in case 1014 but was not potentially initial= ized unless the shown regcache_raw_read_unsigned call was made. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210798-13-SjXS1oKRVI>