breakpad/src/common
jimblandy 6de1b75da4 Breakpad Linux dumper: Compare section names correctly.
FindSectionByName will return the first section whose name starts with
NAME, because strncmp stops the comparison once NAME's characters have
been found to match. The comparison stops before the terminating '\0'.
For example, if we search for the section named ".eh_frame", we may
get the section named ".eh_frame_hdr".

Instead, check that the section name section has enough space to store
the complete name with its terminating '\0', and then use strcmp,
which will never examine more than strlen(NAME) + 1 bytes from the
section name section, regardless of its contents, and will require the
terminating '\0' to match as well.

a=jimblandy, r=nealsid


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@525 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-02-18 07:57:53 +00:00
..
dwarf Breakpad DWARF parser: Expand comments for ByteReader class. 2010-02-11 22:44:01 +00:00
linux Breakpad Linux dumper: Compare section names correctly. 2010-02-18 07:57:53 +00:00
mac Issue 39002: Breakpad DWARF parser: Move DWARF parser to platform-independent directory. 2009-12-15 17:06:21 +00:00
solaris Breakpad: Update copyright notice years on all files changed in 2010. 2010-02-09 17:08:56 +00:00
windows don't output duplicate filenames in PDBSourceLineWriter. r=mark at http://breakpad.appspot.com/43001 2009-11-23 14:50:55 +00:00
convert_UTF.c Add unicode.org UTF-8/16/32 conversion code. 2006-12-15 00:03:27 +00:00
convert_UTF.h Add unicode.org UTF-8/16/32 conversion code. 2006-12-15 00:03:27 +00:00
md5.c Solaris version of symbol dumper (#207). Patch by Alfred Peng. r=me 2007-09-28 18:14:48 +00:00
md5.h Solaris version of symbol dumper (#207). Patch by Alfred Peng. r=me 2007-09-28 18:14:48 +00:00
string_conversion.cc issue 238 - missing includes compiling with gcc 4.3. patch by taras glek, r=me 2008-02-24 21:04:51 +00:00
string_conversion.h Solaris port of minidump generator. Port by Alfred Peng. r=me 2007-08-07 21:16:45 +00:00