Changeset 203902 in webkit


Ignore:
Timestamp:
Jul 29, 2016 10:19:17 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Crash Log Clobbering on Unbound Crashes
https://bugs.webkit.org/show_bug.cgi?id=160198
<rdar://problem/27472618>

Patch by Jonathan Bedard <Jonathan Bedard> on 2016-07-29
Reviewed by Alexey Proskuryakov.

  • Scripts/webkitpy/common/system/crashlogs.py:

(CrashLogs): Fix header order.

  • Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:

(TestResultWriter.output_filename): Only remove file extension if it is clearly a file extension.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/fast/harness/results.html

    r195579 r203902  
    273273function stripExtension(test)
    274274{
     275    // Temporary fix, also in Tools/Scripts/webkitpy/layout_tests/constrollers/test_result_writer.py, line 95.
     276    // FIXME: Refactor to avoid confusing reference to both test and process names.
     277    if (splitExtension(test)[1].length > 5)
     278        return test;
    275279    return splitExtension(test)[0];
    276280}
  • trunk/Tools/ChangeLog

    r203898 r203902  
     12016-07-29  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Crash Log Clobbering on Unbound Crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=160198
     5        <rdar://problem/27472618>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Scripts/webkitpy/common/system/crashlogs.py:
     10        (CrashLogs): Fix header order.
     11        * Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
     12        (TestResultWriter.output_filename): Only remove file extension if it is clearly a file extension.
     13
    1142016-07-29  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
    215
  • trunk/Tools/Scripts/webkitpy/common/system/crashlogs.py

    r197704 r203902  
    2929
    3030import codecs
     31import datetime
    3132import re
    32 import datetime
    3333
    3434
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py

    r202362 r203902  
    9090        fs = self._filesystem
    9191        output_filename = fs.join(self._root_output_dir, self._test_name)
     92
     93        # Temporary fix, also in LayoutTests/fast/harness/results.html, line 275.
     94        # FIXME: Refactor to avoid confusing reference to both test and process names.
     95        if len(fs.splitext(output_filename)[1]) - 1 > 5:
     96            return output_filename + modifier
    9297        return fs.splitext(output_filename)[0] + modifier
    9398
Note: See TracChangeset for help on using the changeset viewer.