binutils-gdb/gdb/common
Gary Benson f60db4f07f Fix off-by-one errors in *scanf format strings.
In the first hunk, the format string was off-by-one for cmd, and cmd
itself was larger than the maximum size required.  cmd was reduced in
size and the format string adjusted.

In the second hunk, the format string was off-by-one for local_address,
remote_address and extra, although the buffers for the two addresses
were large enough for this not to matter.  The specifiers for the two
addresses was corrected, and a number of unused variables including
extra were suppressed from parsing.

In the third hunk, the format string was off-by-one for name,
dependencies and status.  This code was rewritten using strtok since
dependencies can be arbitrarily long.

gdb/
2013-10-23  Gary Benson  <gbenson@redhat.com>

	PR 16013
	* common/linux-osdata.c (command_from_pid): Reduced size of cmd
	from 32 to 18.  Adjusted fscanf format string accordingly.
	(Avoids leaving cmd unterminated.)
	(print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
	trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
	that local_address and remote_address will not overflow.
	(linux_xfer_osdata_modules): Parse lines using strtok to avoid
	leaving dependencies unterminated.  Parse size as "%u" to match
	definition.
2013-10-25 14:02:59 +00:00
..
agent.c PR gdb/7912: 2013-04-22 16:46:15 +00:00
agent.h
ax.def
break-common.h gdb/ 2013-07-27 07:11:46 +00:00
btrace-common.h Add branch trace information to struct thread_info. 2013-03-11 08:17:08 +00:00
buffer.c
buffer.h
common-utils.c
common-utils.h
create-version.sh gdb/ 2013-07-04 01:22:38 +00:00
filestuff.c Minor O_CLOEXEC optimization, "regression" fix 2013-10-09 16:00:54 +00:00
filestuff.h 2013-05-10 Joel Brobecker <brobecker@adacore.com> 2013-05-10 17:01:00 +00:00
format.c Handle '#' flag for printf of pointer types. 2013-08-13 16:05:23 +00:00
format.h * ada-lang.c (ada_read_renaming_var_value): Pass const 2013-03-12 17:39:45 +00:00
gdb_assert.h
gdb_dirent.h
gdb_locale.h
gdb_signals.h
gdb_stat.h
gdb_string.h
gdb_thread_db.h Move fallback thread_db.h to a separate file. 2013-04-16 18:14:55 +00:00
gdb_vecs.c
gdb_vecs.h gdb/ 2013-06-26 08:01:57 +00:00
gdb_wait.h
glibc_thread_db.h Update glibc_thread_db.h from upstream. 2013-04-16 18:17:11 +00:00
host-defs.h
i386-cpuid.h gdb: clean up x86 cpuid implementations 2013-06-19 22:29:36 +00:00
i386-gcc-cpuid.h gdb: clean up x86 cpuid implementations 2013-06-19 22:29:36 +00:00
i386-xstate.h
linux-btrace.c gdb: btrace: fix build errors on older glibc builds 2013-09-29 03:57:34 +00:00
linux-btrace.h Implement branch tracing on Linux based on perf_event such that it can be shared 2013-03-11 08:24:07 +00:00
linux-osdata.c Fix off-by-one errors in *scanf format strings. 2013-10-25 14:02:59 +00:00
linux-osdata.h
linux-procfs.c PR gdb/7912: 2013-04-22 16:46:15 +00:00
linux-procfs.h
linux-ptrace.c Always run the PTRACE_O_TRACESYSGOOD tests even if PTRACE_O_TRACEFORK is not supported. 2013-10-03 10:13:34 +00:00
linux-ptrace.h Unify ptrace options discovery code and make both GDB and 2013-08-22 23:46:30 +00:00
mips-linux-watch.c gdb/ 2013-07-27 07:49:05 +00:00
mips-linux-watch.h gdb/ 2013-07-27 07:49:05 +00:00
ptid.c Clean up ptid.h/ptid.c. 2013-10-04 10:04:14 +00:00
ptid.h Clean up ptid.h/ptid.c. 2013-10-04 10:04:14 +00:00
queue.h
signals.c Fix up a couple oddities in GDB's signal names and strings. 2013-10-25 14:02:58 +00:00
vec.c
vec.h
version.h don't keep a gdb-specific date 2013-06-24 15:06:27 +00:00
xml-utils.c
xml-utils.h