Bug 1228317 - Fix a potential error in the replaceAll call when the path contains ?dmp. r=snorp
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 01 Dec 2015 06:34:00 +0100
changeset 309202 10f46d149d72c1a6edc3b8e8a8fc7987fec2a954
parent 309201 3f9f28b75272f42902fded3239820f4f9a202c8c
child 309203 3cd5acd350fbf6aa9b4516f3620a47047dcd0862
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1228317
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1228317 - Fix a potential error in the replaceAll call when the path contains ?dmp. r=snorp
mobile/android/base/CrashReporter.java
--- a/mobile/android/base/CrashReporter.java
+++ b/mobile/android/base/CrashReporter.java
@@ -121,17 +121,17 @@ public class CrashReporter extends AppCo
 
         String passedMinidumpPath = getIntent().getStringExtra(PASSED_MINI_DUMP_KEY);
         File passedMinidumpFile = new File(passedMinidumpPath);
         File pendingDir = new File(getFilesDir(), PENDING_SUFFIX);
         pendingDir.mkdirs();
         mPendingMinidumpFile = new File(pendingDir, passedMinidumpFile.getName());
         moveFile(passedMinidumpFile, mPendingMinidumpFile);
 
-        File extrasFile = new File(passedMinidumpPath.replaceAll(".dmp", ".extra"));
+        File extrasFile = new File(passedMinidumpPath.replaceAll("\\.dmp", ".extra"));
         mPendingExtrasFile = new File(pendingDir, extrasFile.getName());
         moveFile(extrasFile, mPendingExtrasFile);
 
         mExtrasStringMap = new HashMap<String, String>();
         readStringsFromFile(mPendingExtrasFile.getPath(), mExtrasStringMap);
 
         // Set the flag that indicates we were stopped as expected, as
         // we will send a crash report, so it is not a silent OOM crash.