breakpad/src/common/linux
benchan@chromium.org ae5193c24e Replace readlink calls with a safer version that guarantees NULL-termination.
This patch is part of a bigger patch that helps merging the breakpad code
with the modified version in Chromium OS.

Specifically, this patch makes the following changes:
1. Add a SafeReadLink function that wraps sys_readlink() to resolve a
   symbolic link but guarantees the result is NULL-terminated on success.
2. Refactor other source code to use SafeReadLink instead of readlink()
   or sys_readlink().

BUG=455
TEST=Tested the following:
1. Build on 32-bit and 64-bit Linux with gcc 4.4.3 and gcc 4.6.
2. Build on Mac OS X 10.6.8 with gcc 4.2 and clang 3.0 (with latest gmock).
3. All unit tests pass.
4. Run minidump-2-core to covnert a minidump file to a core file.
Review URL: http://breakpad.appspot.com/334001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@896 4c0a9323-5329-0410-9bdc-e9ce6186880e
2011-12-21 17:51:40 +00:00
..
dump_symbols_unittest.cc Linux/Mac: Add option to omit the CFI section in dump_syms. 2011-09-14 01:02:55 +00:00
dump_symbols.cc Minor formatting fix following r865. 2011-10-11 20:16:17 +00:00
dump_symbols.h Linux/Mac: Add option to omit the CFI section in dump_syms. 2011-09-14 01:02:55 +00:00
eintr_wrapper.h Breakpad: Update copyright notice years on all files changed in 2010. 2010-02-09 17:08:56 +00:00
elf_symbols_to_module_unittest.cc Add some unit tests for Linux WriteSymbolFile 2011-07-06 17:05:59 +00:00
elf_symbols_to_module.cc Dump PUBLIC + CFI records from libraries without debug info on Linux, use .dynsym for symbol names if there are no usable debug symbols. 2011-07-06 17:05:49 +00:00
elf_symbols_to_module.h Dump PUBLIC + CFI records from libraries without debug info on Linux, use .dynsym for symbol names if there are no usable debug symbols. 2011-07-06 17:05:49 +00:00
file_id_unittest.cc Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
file_id.cc Refactor code in preparation of merging with the fork in Chromium OS. 2011-12-16 16:42:59 +00:00
file_id.h Refactor code in preparation of merging with the fork in Chromium OS. 2011-12-16 16:42:59 +00:00
google_crashdump_uploader_test.cc New uploader for Linux with unit tests, and gflags/glog libraries 2009-09-29 21:55:19 +00:00
google_crashdump_uploader.cc Remove LOG statements from linux utilities so there's no dependency on log library 2010-05-27 19:37:24 +00:00
google_crashdump_uploader.h New uploader for Linux with unit tests, and gflags/glog libraries 2009-09-29 21:55:19 +00:00
guid_creator.cc Breakpad: Avoid using the C++ <cfoo> headers. 2010-06-25 16:57:07 +00:00
guid_creator.h Add Linux exception handler. 2007-03-12 01:53:18 +00:00
http_upload.cc Fix libcurl include in http_upload (trivial, no bug) 2011-08-30 15:20:56 +00:00
http_upload.h Allow passing certificate path to HTTPUpload::SendRequest 2010-08-11 19:05:53 +00:00
libcurl_wrapper.cc Add specific curl headers to facilitate building on Ubuntu Lucid 2010-11-17 18:45:20 +00:00
libcurl_wrapper.h Add specific curl headers to facilitate building on Ubuntu Lucid 2010-11-17 18:45:20 +00:00
linux_libc_support_unittest.cc Upstreaming several patches from Chrome: 2009-12-01 21:35:52 +00:00
linux_libc_support.h Merge of Breakpad Chrome Linux fork 2009-08-17 23:12:53 +00:00
memory_mapped_file_unittest.cc Refactor code in preparation of merging with the fork in Chromium OS. 2011-12-16 16:42:59 +00:00
memory_mapped_file.cc Refactor code in preparation of merging with the fork in Chromium OS. 2011-12-16 16:42:59 +00:00
memory_mapped_file.h Refactor code in preparation of merging with the fork in Chromium OS. 2011-12-16 16:42:59 +00:00
safe_readlink_unittest.cc Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
safe_readlink.cc Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
safe_readlink.h Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
synth_elf_unittest.cc Add some unit tests for Linux WriteSymbolFile 2011-07-06 17:05:59 +00:00
synth_elf.cc issue 243 - Linux dumper should use build id produced by ld --build-id if available 2011-08-30 15:21:07 +00:00
synth_elf.h issue 243 - Linux dumper should use build id produced by ld --build-id if available 2011-08-30 15:21:07 +00:00