diff options
author | Gabriele Svelto <gsvelto@mozilla.com> | 2017-04-11 11:51:28 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@chromium.org> | 2017-04-12 18:51:24 +0000 |
commit | a9fca58305afcb16a7ae539d87d672c702aba3f1 (patch) | |
tree | 06ef59d420b0168a301e27a56dd2bc8e7702a432 /src/common/mac/dump_syms.h | |
parent | Dump MH_DYLINKER images in upload_system_symbols. (diff) | |
download | breakpad-a9fca58305afcb16a7ae539d87d672c702aba3f1.tar.xz |
Make minidump name generation on Linux as random as possible
This patch ensures that two crashes taken within the same second have
different minidump names. The random characters used in the minidump
filename are now read from /dev/urandom where possible or generated via
arc4random(). If neither is available we fall back to regular rand() but
mixing the address of an object to the current time when generating the
random seed to make it slightly less predictable.
BUG=681
Change-Id: I2e97454859ed386e199b2628d6b7e87e16481b75
Reviewed-on: https://chromium-review.googlesource.com/445784
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'src/common/mac/dump_syms.h')
0 files changed, 0 insertions, 0 deletions