Import a security patch from the mainline which changes the default behaviour
authorNick Clifton <nickc@redhat.com>
Fri, 31 Oct 2014 10:21:57 +0000 (10:21 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 31 Oct 2014 10:21:57 +0000 (10:21 +0000)
commitb0b93f3592f3d165896e8dc8186a7ba285f0f3e4
tree778ee2a7cc1a5ff809410c5960f46f350b1aeafb
parent5717fd29bface2ada46b9d03929ce481a0239ee0
Import a security patch from the mainline which changes the default behaviour
of the strings program to be --all rather then --data.  This avoids using the
BFD library by default, and so avoids exposing strings to any memory bugs
present in BFD.

* strings.c: Add new command line option --data to only scan the
initialized, loadable data secions of binaries.  Choose the
default behaviour of --all or --data based upon a configure
option.
* doc/binutils.texi (strings): Update documentation.  Include
description  of why the --data option might be unsafe.
* configure.ac: Add new option --disable-default-strings-all which
restores the old behaviour of strings using --data by default.  If
the option is not used make strings use --all by default.
* NEWS: Mention the new behaviour of strings.
* configure: Regenerate.
* config.in: Regenerate.
binutils/ChangeLog
binutils/NEWS
binutils/config.in
binutils/configure
binutils/configure.ac
binutils/doc/binutils.texi
binutils/strings.c